Identifiers

Choose and verify UUIDs for event fixtures

Choose between random and time-sortable IDs, generate a fixture batch, and check what the version digit tells you.

Open UUID Generator

Choose the version your receiving system accepts

For a sample event feed, start with UUID v4 if your tests need random identifiers and already carry a separate createdAt field. Use UUID v7 if you specifically need to test a system that accepts time-sortable IDs. Version 7 encodes a millisecond timestamp, so suitability also depends on whether exposing the creation time matters in your application.

Generate three IDs and check the version digit

In UUID Generator, choose UUID v4 (Random), set Quantity to 3, and select Generate. You should see three distinct IDs. Each has a 4 as the first digit in its third group. Change to UUID v7 (Time-Sortable) and generate again. In that batch the equivalent digit is 7. The following values are illustrative, so the rest of your output will differ.

v4  4f547075-cb70-4c0d-a2fb-8ddf2dcd8620
v7  0195aaeb-2200-7cbc-8528-9482436fc210

Save the batch you use in repeatable tests

Use Download for a text file with one ID per line. Save the final values alongside the fixtures so a test can compare stable results. Keep event time and any required sequence number as explicit fields, especially for events created in the same millisecond. Test the receiving system’s UUID validation and uniqueness enforcement separately.

Further reading

Browse all guides · Suggest a correction