Home › Developer Tools › UUID Generator

UUID Generator

Generate random version 4 or time-ordered version 7 UUIDs, one or thousands at a time, then copy them or download a file. Paste any UUID to check its version and read the timestamp inside v7 and v1 IDs.

Last updated:

 

UUID decoder and validator

The version, variant and any embedded timestamp will appear here.
Advertisement
Advertisement

How to use the UUID Generator

  1. Pick a version. Choose v4 for fully random IDs or v7 for IDs that sort by creation time.
  2. Set how many you need (1 to 10,000) and press Generate.
  3. Adjust the format: uppercase, no hyphens, braces, or a JSON array or SQL list. The list updates instantly without changing the IDs.
  4. Copy the list or download it as a text file.
  5. Decode a UUID by pasting it in the decoder to see its version, variant and, for v7 or v1, the date and time it was created.

How a UUID is built

A UUID is 128 bits written as 32 hexadecimal digits in five groups (8-4-4-4-12). Two places are fixed in every standard UUID: the first digit of the third group is the version, and the first digit of the fourth group holds the variant (8, 9, a or b for RFC 9562 UUIDs).

VersionLayoutExample
v4 (random)122 random bits + 4 version bits + 2 variant bits3f2b8c1e-9d4a-4e7f-a1c2-5b6d7e8f9a0b
v7 (time-ordered)48-bit Unix time in ms, version, 12 bits counter/random, variant, 62 random bits0199f9c4-1000-73a1-9c4f-0e1d2c3b4a59
v1 (legacy time)60-bit count of 100 ns since 15 Oct 1582 + clock sequence + node IDc232ab00-9414-11ec-b3c8-9f6bdeced846

Reading the time inside a UUID v7

The first 12 hex digits of a v7 UUID are the creation time in milliseconds since 1 January 1970 UTC. For 0199f9c4-1000-73a1-… the timestamp is 0x0199f9c41000 = 1,760,832,000,000 ms, which is 19 October 2025 at 00:00:00 UTC. Because the time comes first, sorting v7 UUIDs as text also sorts them by creation time. When several IDs are created in the same millisecond, this generator increments the 12-bit field after the version digit, so every ID in a batch is larger than the one before it.

Which version should I use?

  • Database primary keys: v7. New keys land at the end of B-tree indexes, which keeps inserts fast and pages compact compared with random v4 keys.
  • Public or unguessable IDs: v4. It contains nothing but randomness, so it reveals nothing about when it was made.
  • Same input should always give the same ID: v5 (SHA-1 name-based), generated from a namespace and a name. It is not random, so it is not offered here.

Both formats are 36 characters with hyphens, or 32 without. Store them in a native UUID column (PostgreSQL) or BINARY(16) (MySQL) to save space compared with text.

Frequently asked questions

What is the difference between UUID v4 and UUID v7?

A version 4 UUID is 122 random bits with no meaning. A version 7 UUID starts with a 48-bit Unix timestamp in milliseconds followed by random bits, so v7 IDs sort in the order they were created. That makes v7 friendlier for database primary keys because new rows go to the end of the index.

Is a GUID the same as a UUID?

Yes. GUID (globally unique identifier) is Microsoft's name for the same 128-bit identifier. GUIDs are often written in uppercase and sometimes wrapped in curly braces, which you can switch on in the format options.

Can two generated UUIDs ever be the same?

In theory yes, in practice no. A v4 UUID has 122 random bits, so you would need to generate about 2.7 quintillion IDs before the chance of a single duplicate reaches 50 percent. v7 IDs also include the time, which makes collisions even less likely.

Are these UUIDs secure and random?

The random parts come from your browser's cryptographically secure generator (crypto.getRandomValues or crypto.randomUUID). Still, a UUID is an identifier, not a secret: v7 IDs reveal when they were created, so do not use any UUID as a password or access token.

Does a v7 UUID reveal information?

It reveals its creation time to the millisecond, which the decoder on this page can read. It contains no MAC address, IP address or other device information.

Are the UUIDs generated on a server?

No. Every ID is created in your browser and nothing is sent anywhere, so the page works offline once it has loaded.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.Password GeneratorCreate strong passwords and passphrases.Fake Data GeneratorGenerate mock data as JSON, CSV or SQL.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.API Key GeneratorCreate secure API keys and secrets with prefixes, checksums and SHA-256 hashes for storage.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.Bluetooth Device ScannerFind nearby Bluetooth LE devices and read their services, characteristics and battery level.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.Barcode GeneratorCreate Code 128, EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 barcodes as PNG or SVG.Schema Markup Generator (JSON-LD)Create JSON-LD structured data for FAQ, Product, Article and more.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.MIME Type LookupFind the MIME type for any file extension, or the extensions for a MIME type, in 400+ entries.Cron Expression GeneratorBuild crontab schedules visually, read them in plain English and see the next run times.URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs: accents, stop words, separators and bulk lines.JSON Schema GeneratorTurn sample JSON into a draft 2020-12 JSON Schema with types, required fields and formats.Gitignore GeneratorBuild a .gitignore from 50+ templates for languages, frameworks, IDEs and OS, merged and deduped.License GeneratorCreate a LICENSE file for MIT, Apache, GPL, BSD, ISC, MPL or Unlicense with your name and year.ULID GeneratorGenerate sortable ULIDs and UUID v7 in bulk, monotonic option, and decode their timestamps.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.Placeholder Image GeneratorCreate placeholder images in any size, color and text as PNG, JPG, WebP, SVG or data URI.Ads.txt GeneratorCreate or validate ads.txt and app-ads.txt files: seller lines, cert IDs and variables.Docker Run to Compose ConverterConvert docker run commands to docker-compose.yml, or a compose file back to docker run.Dockerfile GeneratorGenerate a production Dockerfile and .dockerignore for Node, Python, Go or a static nginx site.HTML Boilerplate GeneratorTick the options you need and get a clean HTML5 starter template with meta, OG tags and CSS reset.JSON to Zod SchemaInfer a Zod (or Yup) schema from sample JSON with optional, nullable and z.infer types.Linux Commands Cheat SheetSearchable Linux and bash command reference with flags explained, examples and copy buttons.LLMs.txt GeneratorBuild an llms.txt file for AI crawlers: summary and link sections, import from your sitemap.Nano ID GeneratorGenerate secure Nano IDs with custom alphabet, length and count, plus a collision calculator.Nginx Config GeneratorBuild an nginx server block: static site, SPA, reverse proxy or PHP, with SSL, gzip and redirects.OpenAPI / Swagger ViewerView OpenAPI 2/3 JSON or YAML as interactive API docs with validation and an endpoint list.PKCE Code Challenge GeneratorGenerate an OAuth 2.0 PKCE code_verifier and S256 code_challenge, build auth URLs, verify pairs.README GeneratorFill in a form and get a polished README.md with badges, install, usage and license, live preview.Regex GeneratorBuild regular expressions visually from blocks or presets (email, date, phone) and test them live.Commit Message GeneratorBuild Conventional Commit messages with type, scope, body, breaking change and issue refs.Database Schema DesignerDesign tables and relationships visually, then export SQL for MySQL, PostgreSQL or SQLite.Dummy File GeneratorCreate test files of an exact size in KB, MB or GB with zeros, random bytes or text.FFmpeg Command GeneratorPick a task and options, get the exact ffmpeg command with every flag explained.Organization Schema GeneratorCreate Organization JSON-LD with logo, URL, contact points, address and social profiles.PIN GeneratorGenerate random 4, 6 or 8-digit PINs that avoid sequences, repeats, dates and common PINs.Product Schema GeneratorBuild Product JSON-LD with price, availability, brand, GTIN, ratings and reviews.Question Keyword GeneratorFind the questions people ask about a topic, grouped by who, what, why, how, can and more.Recipe Schema GeneratorCreate Recipe JSON-LD with ingredients, steps, prep and cook times, nutrition and ratings.Security Headers GeneratorPick HSTS, CSP, frame, referrer and permissions options and get Apache, Nginx, Netlify or Cloudflare config.SKU GeneratorBuild consistent SKUs from brand, category, size and color, then export every variant as CSV.Typography Scale GeneratorBuild a modular type scale from a base size and ratio, then copy CSS variables or a Tailwind config.WordPress Salt GeneratorGenerate fresh WordPress security keys and salts for wp-config.php, .env or Docker in one click.ANSI Color Code GeneratorStyle terminal text with 16, 256 or RGB colors and get escape codes for bash, Python, JS and C.Apache Virtual Host GeneratorCreate an Apache VirtualHost config with SSL, redirects, reverse proxy or PHP-FPM in seconds.Bash Prompt GeneratorDrag and drop a custom PS1 prompt for bash or zsh with colors, git branch and a live preview.Changelog GeneratorTurn Conventional Commit messages into a grouped Keep a Changelog Markdown file per version.cURL Command BuilderBuild curl commands from a form: method, headers, query, JSON or form body, auth and flags.Docker Compose to KubernetesConvert docker-compose.yml into Kubernetes Deployment, Service, ConfigMap and PVC manifests.Docker Compose ValidatorCheck a docker-compose.yml for YAML errors, schema mistakes, broken references and deprecated keys.Dockerfile LinterLint a Dockerfile for best practices: pinned tags, apt cleanup, non-root USER and layer count.Dockerignore GeneratorBuild a .dockerignore from Node, Python, Go and Java templates, plus your own entries.ESLint Config GeneratorGenerate a flat eslint.config.js for JavaScript, TypeScript, React or Node with rule presets.Git Branch Name GeneratorTurn a ticket ID and title into a clean, valid git branch name like feature/PROJ-12-add-login.GitLab CI Config GeneratorGenerate a .gitlab-ci.yml with stages, jobs, images, cache, artifacts and rules from templates.Jinja2 Template TesterRender Jinja2 templates with YAML or JSON variables using real Jinja2, with clear error lines.Kubernetes Secret GeneratorCreate Kubernetes Secret YAML from key/value pairs or .env with auto base64, or decode one.Kubernetes YAML ValidatorValidate Kubernetes manifests against the API schema of a chosen version, with error paths.Prettier Config GeneratorToggle Prettier options, preview formatted code live and copy your .prettierrc file.Quartz Cron GeneratorBuild and explain Quartz and Spring cron expressions with seconds, ?, L, W and #, plus next fire times.README Badge GeneratorCreate Shields.io-style README badges for license, version, build and custom labels.Systemd Service File GeneratorCreate a systemd .service unit with ExecStart, user, restart policy, environment and hardening.tsconfig.json GeneratorBuild a tsconfig.json with target, module, strict checks and path aliases, each option explained.Access Log AnalyzerAnalyze Apache and Nginx access logs: top URLs, IPs, status codes, bots and traffic charts.
See all 85 Code Generators & Builders →