GUID Generator

A new GUID, random (version 4) or ordered by time (version 7), in the format your code wants.

Version
Format
Letters

Paste one, in any format, to see its version and, for a time-ordered one, when it was made.

  • Version 4 is random: 122 random bits, so two never meet in practice. Version 7 starts with the time in milliseconds, so new ones sort after old ones, which keeps a database index from splitting pages.
  • SQL Server orders a uniqueidentifier by its last six bytes first, so a version 7 isn’t in time order there; NEWSEQUENTIALID() is, and PostgreSQL’s uuid keeps a version 7 in order.
  • A GUID is unique, not secret: never use one as a password or a key to anything.

More tools

Keep exploring.

All tools

Markdown Editor

Write Markdown and see it as you type, with GitHub alerts, tables, tasks, math, Mermaid and PlantUML.

Text Compare

Two texts or files side by side, every change lined up to the character.

Code Practice

Puzzles that compile, to keep a developer's mind sharp.