@vectode/id-generator

Build an ID, see where every character comes from.

Everything on this page runs in your browser with the published library. Nothing is sent anywhere, and counters start over when you reload.

Your pattern

Tokens go in braces, like {year} or {seq:5}. Names the library does not know become fields below. The same token twice gives the same value. Write {{ for a literal brace.

Next ID

Generated so far

Nothing generated yet. The preview above never uses up a number.

    Standard formats

    Same library, no pattern needed. Time-ordered formats sort by creation time, which keeps database indexes compact. Random formats are the ones to use where nobody should guess the next value.

    Format Example Length Sorts by time Actions

    Read an ID

    UUIDs and ULIDs show their version and creation time. IDs that fit your pattern above are split into their values.