Utvikling · verktøy

UUID-generator

Velg hvor mange identifikatorer du trenger, og kopier dem med ett klikk.

Kjøres i nettleseren. Ingen opplasting.
UUID v4 identifiers

Generated locally with your browser’s secure random source.

Om verktøyet

UUID-generator sem complicação.

Nyttig for testdata, databaseposter og utvikling. UUID-er opprettes lokalt med Web Crypto API.

Veiledning

Slik bruker du UUID-generator

The UUID Generator creates version 4 UUIDs, which are 128-bit identifiers written as 36 characters. You choose how many you want, from 1 to 100, and the tool lists them one per line so you can copy them. Each one comes from your browser's built-in function crypto.randomUUID(), which uses the browser's secure random source. The tool does not make other UUID versions, and it does not store or check what it makes.

Slik gjør du

  1. Type how many UUIDs you need in the box. It must be a whole number from 1 to 100.
  2. Press Generate UUIDs. The list appears in the result box, one UUID per line.
  3. Press Copy UUIDs to put the whole list on your clipboard.
  4. Press Clear to empty the list. Press Generate again for a new set, because nothing is reused.

Eksempler

One UUID

Du skriver inn
Antall
1
Du får
Resultat
a line like afb8cf04-7ce7-4055-a04e-86de6a3a57ad

The value changes every time. A real run of the same browser function gave 36 characters, with the digit 4 first in the third group and one of 8, 9, a or b first in the fourth group.

Kjørt med verktøyets egen kode.

Five UUIDs for test rows

Du skriver inn
Antall
5
Du får
Resultat
five lines, each a different v4 UUID

The tool calls the browser function five times and joins the results with line breaks, so there are exactly five lines.

Kjørt med verktøyets egen kode.

A number that is too big

Du skriver inn
Antall
101
Du får
Melding
Choose a number from 1 to 100.

The upper limit is 100 per run. For more, press Generate again, or use a script in your own code.

Kjørt med verktøyets egen kode.

A decimal number

Du skriver inn
Antall
2.5
Du får
Melding
Choose a number from 1 to 100.

The count must be a whole number, so a decimal is rejected. The check also rejects 0 and negative numbers.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Make unique ids for test data, fixtures or sample database rows.
  • Create placeholder ids while you design an API or a data model.
  • Get a few fresh ids for filenames, tags or records in a small project.
  • Learn what a v4 UUID looks like.

Begrensninger

  • Only version 4 (random) UUIDs are made. Time-ordered or name-based versions are not offered.
  • You can make 1 to 100 at a time, as whole numbers.
  • The tool relies on the browser's crypto.randomUUID(), so a very old browser or a page without a secure context may not have it.
  • Nothing is saved and there is no way to recover a list after you clear it or close the page.
  • A UUID is an identifier, not a secret. Do not use one as a password or a login token.

Tips

  • Copy the list straight after you generate it, because the tool does not keep it.
  • Use lowercase as given, since it matches the usual way UUIDs are written.
  • For a production system, create ids in your own server code, not by hand.

Kilder

Vanlige spørsmål

Sobre UUID-generator.

Where does the randomness come from?

The code calls crypto.randomUUID() from the Web Crypto API in your browser. Per its documentation, this makes a version 4 UUID with a cryptographically secure random number generator. The tool adds no random code of its own.

What is a version 4 UUID?

It is a 128-bit identifier whose bits are random apart from a few that mark the version and variant. It is written as five groups of hexadecimal digits separated by dashes. The standard that defines it is RFC 9562, which replaced RFC 4122.

Can two UUIDs be the same?

In theory yes, but with 122 random bits the chance is extremely small for ordinary use. The tool cannot check your database for duplicates, so if clashes would be costly, enforce a unique rule there as well.

Is it safe to use a UUID as a password or token?

No. A UUID is built to be unique, not to be a secret. Its format is well known and parts of it are fixed. Use a password manager or a proper token generator for secrets.

Are the UUIDs sent to a server?

No. They are created locally in your browser, and the page says so. The tool does not send or store the list.

Why is there a limit of 100?

The tool is meant for quick copies, so each run is capped at 100 lines. If you need thousands, call the same browser function in a short script, or run the tool several times.

Is a UUID the same as a GUID?

In practice yes. GUID is the name used in some Microsoft products for the same 128-bit format. A v4 UUID made here can be used where a GUID is asked for, as long as the system accepts the standard text form.

Hvordan bruker du UUID-generator?

Velg hvor mange identifikatorer du trenger, og kopier dem med ett klikk.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.