KSUID generator

Generate K-Sortable Unique Identifiers (KSUIDs) in-browser with optional custom timestamps.

Options

Timestamp mode

KSUID epoch: 2014-05-13T16:53:20Z

Results

Generated with Unix time: 1,789,895,914

Generate KSUIDs locally in your browser without sending the current batch to another service. This tool is useful when you need identifiers that stay unique across distributed systems while still sorting roughly by creation time for logs, feeds, imports, or ordered records.

Why use KSUID

KSUID combines a 32-bit timestamp with 128 bits of randomness and encodes the result as a 27-character Base62 string. That makes each ID compact, URL-friendly, and easy to store, while the embedded timestamp keeps newer values generally sorted after older ones.

Choose the current time or a custom timestamp

Use the current time when you want fresh IDs for production data, demos, or routine batch generation. Switch to a custom timestamp when you need reproducible fixtures, backfilled records, migration samples, or test cases that should appear to come from a specific moment.

Before you export

KSUID keeps only second-level precision, so any millisecond input is rounded down to the start of that second. IDs created in the same second are still unique, but their final ordering depends on the random payload, so treat KSUID as time-sortable rather than strictly sequential.

How to use

Set a count and time, then copy or download all results