Interactive demo
UUIDv7 + Base62

Generate typed IDs, then tear them back open.

This playground turns the current best-id package into a browser studio: make prefix-aware batches, inspect their UUID payloads, and validate arbitrary input one line at a time.

GitHub
Installpnpm add best-id
Prefix aware
22-char suffix
Batch generation
A live surface for the parts that matter.

Leave the prefix empty for suffix-only IDs, or use a lowercase namespace like user and order. Every generated item below is immediately parseable into prefix, suffix, and canonical UUID.

Prefix rule

lowercase + underscores

Suffix length

22 fixed Base62 chars

Underlying payload

validated UUIDv7

Suggested flow

Generate a batch, inspect any single value, then paste in your own IDs to test prefix expectations and UUID conversion.

01

Pick a prefix and a count.

02

Generate a batch and copy any ID or UUID.

03

Send one ID or the whole batch to the parser.

04

Validate arbitrary lines with or without an expected prefix.

Generator
Generate multiple IDs

Fresh IDs are created in the browser using the same source file as the package root. Generating a new batch also refreshes the parser input on the right.

Prefix: user
4 fresh IDs
Allowed prefix characters: lowercase letters and underscores.
#1
user

user_032vWNgAxCroqMTWs4ETo1

UUID 019d6855-4394-7277-ba7c-d82940fe1221

Suffix

032vWNgAxCroqMTWs4ETo1

Prefix

user

#2
user

user_032vWNgB3L3Ew3DxnkyoMb

UUID 019d6855-4395-7634-8760-288a8f450e61

Suffix

032vWNgB3L3Ew3DxnkyoMb

Prefix

user

#3
user

user_032vWNgB3L3Ew3FUnmW9XG

UUID 019d6855-4395-7634-8760-2d72ec9f0e12

Suffix

032vWNgB3L3Ew3FUnmW9XG

Prefix

user

#4
user

user_032vWNgB3L3Ew3HQxl1ajw

UUID 019d6855-4395-7634-8760-33a8084ed738

Suffix

032vWNgB3L3Ew3HQxl1ajw

Prefix

user

Parser
Parse arbitrary input

Paste one Best ID per line. Add an expected prefix if you want mismatch errors, then inspect the prefix, suffix, and UUID string for every valid line.

4 valid
0 invalid
Valid
user

user_032vWNgAxCroqMTWs4ETo1

Prefix

user

Suffix

032vWNgAxCroqMTWs4ETo1

UUID

019d6855-4394-7277-ba7c-d82940fe1221

Valid
user

user_032vWNgB3L3Ew3DxnkyoMb

Prefix

user

Suffix

032vWNgB3L3Ew3DxnkyoMb

UUID

019d6855-4395-7634-8760-288a8f450e61

Valid
user

user_032vWNgB3L3Ew3FUnmW9XG

Prefix

user

Suffix

032vWNgB3L3Ew3FUnmW9XG

UUID

019d6855-4395-7634-8760-2d72ec9f0e12

Valid
user

user_032vWNgB3L3Ew3HQxl1ajw

Prefix

user

Suffix

032vWNgB3L3Ew3HQxl1ajw

UUID

019d6855-4395-7634-8760-33a8084ed738