Each micro:bit has a five-character name that you might see when you are using Scratch or connecting via Bluetooth.
Displaying the name of the micro:bit on the LED screen
MakeCode
You can find out the name of your micro:bit in MakeCode by using the `device name` block.

https://makecode.microbit.org/_ikxTxiHUuJe0
MicroPython
import machine
import struct
from microbit import display
def microbit_friendly_name():
length = 5
letters = 5
codebook = [
['z', 'v', 'g', 'p', 't'],
['u', 'o', 'i', 'e', 'a'],
['z', 'v', 'g', 'p', 't'],
['u', 'o', 'i', 'e', 'a'],
['z', 'v', 'g', 'p', 't']
]
name = []
# Derive our name from the nrf51822's unique ID
_, n = struct.unpack("II", machine.unique_id())
ld = 1;
d = letters;
for i in range(0, length):
h = (n % d) // ld;
n -= h;
d *= letters;
ld *= letters;
name.insert(0, codebook[i][h]);
return "".join(name);
display.scroll(microbit_friendly_name())Finding the name of the micro:bit from the pairing pattern
You can also find the name, by looking at the barcode in pairing mode:
Further information
The micro:bit name cannot be changed. It is derived in the micro:bit runtime from the micro:bit's hard-coded serial number.
Further discussion can be found in this GitHub issue https://github.com/lancaster-university/microbit-dal/issues/306
There are 3125 possible names, so many micro:bits in the world will share the same name, but it is likely to be locally unique.
Also see How to find the serial number of your micro:bit