TBToolbox
Developer Tools

UUID Generator

UUID Generator calls crypto.randomUUID() once and displays a canonical lowercase version-4 identifier. It does not reserve the value, check a database, attach a timestamp or namespace, make a sequential ID, or turn the identifier into an authorization secret. Collision probability is extremely low with correct randomness, but application uniqueness still belongs in storage constraints.

Runs locally — files stay on your device
Quick answer

What UUID version is produced?

Version 4.

A v4 UUID is a random identifier

A 128-bit UUID reserves version and variant bits and uses random bits for the remainder. It is opaque and does not encode business meaning.

How it works

The browser's secure-context randomUUID method returns one hyphenated 8-4-4-4-12 string.

Key concepts

Random, not sequential

Lexical order does not represent creation order.

Identifier, not secret

Authorization must be enforced separately.

When to use it

  • Create an opaque test record ID.
  • Generate a client correlation identifier.
  • Assign a provisional key before persistence.

When not to use it

  • Do not use it as an access-control decision.
  • Do not expect creation-time ordering.
  • Do not replace a database uniqueness constraint.

Worked examples

New record

Input
Run once
Expected output
One canonical v4 UUID

No value is stored.

Second run

Input
Run again
Expected output
A different UUID

Fresh randomness is requested.

Database use

Input
Generated UUID
Expected output
Candidate key

The database should still enforce uniqueness.

Common mistakes

Assuming reservation

The page has no database. Correction: Persist it transactionally.

Sorting by UUID

v4 carries no timestamp order. Correction: Store a creation time.

Using as password

ID lifecycle differs from secret lifecycle. Correction: Generate and protect a dedicated secret.

Best practices

  • Keep a uniqueness constraint.
  • Treat IDs as observable.
  • Use one UUID version consistently across an integration.

Related operations and differences

JSON Formatter & Validator

Choose JSON Formatter & Validator when you need to format, minify and validate JSON instantly.; use UUID Generator specifically for uuid.

Compare JSON

Choose Compare JSON when you need to show value differences between two JSON documents.; use UUID Generator specifically for uuid.

CSV Column Extractor

Choose CSV Column Extractor when you need to extract one CSV column by header name.; use UUID Generator specifically for uuid.

CSV Column Remover

Choose CSV Column Remover when you need to remove one CSV column by header name.; use UUID Generator specifically for uuid.

CSV Duplicate Remover

Choose CSV Duplicate Remover when you need to remove completely duplicated CSV rows.; use UUID Generator specifically for uuid.

CSV Formatter

Choose CSV Formatter when you need to normalize CSV quoting and row structure.; use UUID Generator specifically for uuid.

Limitations and privacy

  • One v4 UUID per run.
  • No batch, v1/v3/v5/v6/v7/v8, namespace, persistence, collision lookup, uppercase, compact form, or deterministic seed.

Input is processed locally in this browser and is not uploaded by the tool.

Frequently asked questions

Is it stored?

No.

Is it guaranteed unique?

No mathematical guarantee; collision probability is extremely low.

Does it contain a timestamp?

No.

Can it authorize access?

Not by itself.

References