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_032tGxjX8UvE8fOcsga8EY

UUID 019d5404-1cda-727c-846e-527c46a2d0e6

Suffix

032tGxjX8UvE8fOcsga8EY

Prefix

user

#2
user

user_032tGxjX8UvE8fPuKkzblZ

UUID 019d5404-1cda-727c-846e-5697068dc711

Suffix

032tGxjX8UvE8fPuKkzblZ

Prefix

user

#3
user

user_032tGxjX8UvE8fRIOHJivx

UUID 019d5404-1cda-727c-846e-5b091cd12131

Suffix

032tGxjX8UvE8fRIOHJivx

Prefix

user

#4
user

user_032tGxjXEePteFFV6GmZKA

UUID 019d5404-1cdb-771e-833c-a56e6c12ac6e

Suffix

032tGxjXEePteFFV6GmZKA

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_032tGxjX8UvE8fOcsga8EY

Prefix

user

Suffix

032tGxjX8UvE8fOcsga8EY

UUID

019d5404-1cda-727c-846e-527c46a2d0e6

Valid
user

user_032tGxjX8UvE8fPuKkzblZ

Prefix

user

Suffix

032tGxjX8UvE8fPuKkzblZ

UUID

019d5404-1cda-727c-846e-5697068dc711

Valid
user

user_032tGxjX8UvE8fRIOHJivx

Prefix

user

Suffix

032tGxjX8UvE8fRIOHJivx

UUID

019d5404-1cda-727c-846e-5b091cd12131

Valid
user

user_032tGxjXEePteFFV6GmZKA

Prefix

user

Suffix

032tGxjXEePteFFV6GmZKA

UUID

019d5404-1cdb-771e-833c-a56e6c12ac6e