ULID Generator & Validator
Generate and validate universally unique, lexicographically sortable identifiers.
generator
ulid
A Developer's Guide to the ULID Generator & Validator
The ULID Generator & Validator is a tool for working with Universally Unique, Lexicographically Sortable Identifiers. ULIDs are a great alternative to UUIDs when you need your IDs to be sortable by the time they were created.
Generator Features
- Bulk Generation: Create multiple ULIDs at once by specifying the quantity you need.
- Timestamp Seeding: For testing or specific use cases, you can provide a Unix timestamp (in milliseconds) to generate ULIDs for a specific point in time.
- Easy Copying:
- Copy a single ULID with one click.
- Copy all generated ULIDs to your clipboard at once.
Validator Features
- ULID Validation: The tool checks if a given string is a valid ULID.
- Timestamp Decoding: For a valid ULID, it automatically decodes the embedded timestamp and displays it in a human-readable UTC format.
How to Use
Generator
- Select the "Generator" Tab.
- Set Quantity: Enter the number of ULIDs you want to generate.
- (Optional) Set Seed: If you need to generate ULIDs for a specific time, enter the Unix timestamp in milliseconds into the "Seed Timestamp" field. Leave it blank to use the current time.
- Generate: Click the "Generate" button. A new list of ULIDs will appear.
- Copy: Copy individual ULIDs or the entire list using the dedicated buttons.
Validator
- Select the "Validator" Tab.
- Enter a ULID: Paste the ULID string you want to validate into the input field.
- Click Validate: Press the "Validate" button.
- Review the Result: An alert will appear, telling you if the ULID is Valid or Invalid. If it's valid, it will also show you the decoded timestamp.