개발자

UUID 생성기

UUID(v4)를 원하는 개수만큼 생성

생성된 UUID는 브라우저에서만 처리되며 서버로 전송·저장되지 않습니다.UUIDs are generated entirely in your browser — never uploaded or stored.

UUID 생성기란?

UUID 생성기는 랜덤 기반의 UUID v4를 원하는 개수만큼 즉시 만들어주는 도구입니다. 데이터베이스 기본 키, API 리소스 ID, 세션 토큰, 임시 파일명 등 중복 없는 고유 값이 필요할 때 사용합니다. 개수를 정하고 옵션을 고른 뒤 ‘생성’을 누르면 됩니다.

옵션 설명
  • 개수: 1~100개까지 한 번에 생성할 수 있습니다.
  • 대문자: 기본은 소문자(RFC 4122 표준)이며, 켜면 전체 대문자로 표시합니다.
  • 하이픈 포함: 끄면 - 없이 32자 연속 문자열로 출력합니다.
참고: 브라우저의 crypto.randomUUID() 또는 crypto.getRandomValues()를 사용해 암호학적으로 안전한 난수로 생성합니다.
개인정보·처리 방식

모든 생성은 사용자의 브라우저 안에서만 이루어집니다. 결과는 서버로 전송되거나 저장되지 않으며, ‘전체 복사’ 버튼으로 클립보드에 담을 수 있습니다.

UUID v4의 128비트 구조: 버전·변형 비트 위치

UUID v4는 총 128비트를 32자리 16진수(하이픈 4개 포함 36자)로 표현합니다. 이 중 4비트는 버전, 2비트는 변형(variant)을 나타내는 고정값이고 나머지 122비트만 무작위입니다. 이 도구의 실제 생성 코드를 보면 bytes[6] = (bytes[6] & 0x0f) | 0x40로 7번째 바이트의 상위 4비트를 0100(버전 4)으로 고정하고, bytes[8] = (bytes[8] & 0x3f) | 0x80로 9번째 바이트의 상위 2비트를 10(변형 RFC 4122)으로 고정합니다. 그 결과 xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx 형태에서 세 번째 그룹의 첫 글자는 항상 4, 네 번째 그룹의 첫 글자(y)는 항상 8·9·a·b 중 하나로 고정됩니다.

충돌 확률의 규모감과 v4 vs v7 비교

122비트의 무작위성은 2^122 ≈ 5.32×10^36가지 조합을 의미합니다. 생일 문제(birthday paradox) 근사식으로 계산하면, 충돌 확률이 50%에 도달하려면 약 2.71×10^18개(2.71 퀸틸리언)의 UUID를 생성해야 합니다. 초당 10억 개(1e9/sec)씩 쉬지 않고 생성해도 이 지점에 도달하려면 약 86년이 걸리는 규모입니다. 실무에서 마주치는 어떤 시스템도 이 정도 생성량에 도달하지 않으므로 v4는 사실상 고유하다고 간주됩니다.

한편 최근 표준화된 UUID v7은 앞부분에 밀리초 단위 타임스탬프를 넣어 시간순으로 정렬 가능한 UUID를 만듭니다. v4는 완전 무작위라 데이터베이스 인덱스에 넣으면 삽입 위치가 무작위로 흩어져 B-tree 인덱스 성능이 떨어지는 반면, v7은 생성 순서대로 정렬되어 이런 단점을 줄입니다. 다만 v7은 생성 시각이 앞부분에 노출되므로 시각 정보를 숨겨야 하는 용도에는 v4가 더 적합합니다. 이 도구는 가장 널리 쓰이는 v4만 지원합니다.

What is this tool?

The UUID generator creates random UUID v4 values instantly — handy for database primary keys, API resource IDs, session tokens, or temporary filenames that need to be unique. Set a count and options, then press Generate.

Options
  • Count: generate 1 to 100 UUIDs at once.
  • Uppercase: lowercase (RFC 4122) by default; enable to display all uppercase.
  • Include hyphens: disable to output a continuous 32-character string without -.
Note: Values are generated with crypto.randomUUID() or crypto.getRandomValues() for cryptographically strong randomness.
Privacy & processing

Everything runs in your browser. Results are never uploaded or stored, and you can copy them all to your clipboard.

UUID v4's 128-bit layout — where the version and variant bits sit

A UUID v4 represents 128 bits as 32 hex digits (36 characters including 4 hyphens). Of those, 4 bits are a fixed version marker and 2 bits are a fixed variant marker — only the remaining 122 bits are random. Looking at this tool's actual generator code, bytes[6] = (bytes[6] & 0x0f) | 0x40 fixes the top 4 bits of byte 7 to 0100 (version 4), and bytes[8] = (bytes[8] & 0x3f) | 0x80 fixes the top 2 bits of byte 9 to 10 (RFC 4122 variant). In the resulting xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx layout, the first character of the third group is always 4, and the first character of the fourth group (y) is always one of 8, 9, a, or b.

How big is the collision odds, and v4 vs v7

122 bits of randomness means 2^122 ≈ 5.32×10^36 possible combinations. Using the birthday-paradox approximation, reaching a 50% chance of any collision takes roughly 2.71×10^18 UUIDs (2.71 quintillion). Even generating a billion per second nonstop, that would take about 86 years. No real-world system comes close to that volume, so v4 is treated as unique for all practical purposes.

Meanwhile, the newer UUID v7 standard embeds a millisecond timestamp up front, producing UUIDs that sort chronologically. v4's pure randomness means database index inserts land at scattered positions, hurting B-tree index performance, while v7's ordered generation avoids that. But because v7 exposes its creation time, v4 remains the better choice when you need to hide timing information. This tool only supports v4, the most widely used version.

UUID란 무엇인가요?
UUID(Universally Unique Identifier)는 128비트 크기의 값으로, 사실상 전 세계 어디서 생성해도 중복될 확률이 극히 낮은 고유 식별자입니다. 데이터베이스 기본 키, 세션 ID, 파일명, API 리소스 식별자 등 중복 없는 고유 값이 필요한 곳에 널리 사용됩니다.
UUID v4는 다른 버전과 무엇이 다른가요?
UUID에는 시간 기반(v1), 이름 기반(v3·v5), 랜덤 기반(v4) 등 여러 버전이 있습니다. v4는 대부분의 비트를 암호학적으로 안전한 난수로 채우기 때문에 별도 입력값이나 순서 정보 없이도 충돌 가능성이 매우 낮은 식별자를 만들 수 있어 가장 널리 쓰입니다.
생성된 UUID가 정말 중복되지 않나요?
이론적으로는 122비트의 무작위성을 가지므로, 초당 10억 개씩 생성해도 중복이 발생할 확률은 천문학적으로 낮습니다. 완전한 수학적 무중복을 보장하지는 않지만 실무에서는 사실상 고유하다고 간주합니다.
대문자·하이픈 없는 형식도 지원하나요?
네. 기본은 소문자에 하이픈이 포함된 표준 형식(예: 550e8400-e29b-41d4-a716-446655440000)이며, 옵션으로 대문자 변환과 하이픈 제거를 각각 켤 수 있습니다.
생성한 UUID가 서버로 전송되나요?
아니요. 모든 생성은 브라우저 내장 crypto API(window.crypto)를 사용해 기기 안에서만 이루어지며, 서버로 전송되거나 저장되지 않습니다.
UUID v4 문자열에서 버전·변형 비트는 어디에 있나요?
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx 형태에서 세 번째 그룹의 첫 글자는 항상 버전 번호 4이고, 네 번째 그룹의 첫 글자(y)는 항상 8·9·a·b 중 하나로 고정된 변형(variant) 비트입니다. 이 위치를 뺀 나머지 122비트만 실제 무작위 값입니다.
충돌 확률 2^122는 실제로 어느 정도 규모인가요?
생일 문제 근사식으로 계산하면 충돌 확률이 50%에 도달하려면 약 2.71×10^18개(2.71 퀸틸리언)의 UUID가 필요합니다. 초당 10억 개씩 쉬지 않고 생성해도 이 지점까지 약 86년이 걸리는 규모입니다.
UUID v7은 v4와 무엇이 다른가요?
v4는 완전 무작위라 데이터베이스 인덱스에 넣으면 삽입 위치가 흩어져 성능이 떨어질 수 있는 반면, v7은 앞부분에 밀리초 타임스탬프를 넣어 생성 순서대로 정렬됩니다. 다만 v7은 생성 시각이 노출되므로 시각을 숨겨야 하는 경우 v4가 더 적합하며, 이 도구는 가장 널리 쓰이는 v4만 지원합니다.
What is a UUID?
A UUID (Universally Unique Identifier) is a 128-bit value that is, for practical purposes, unlikely to collide no matter where it's generated. It's widely used for database primary keys, session IDs, filenames, and API resource identifiers.
How is v4 different from other versions?
UUIDs come in several versions — time-based (v1), name-based (v3/v5), and random (v4). v4 fills most bits with cryptographically strong randomness, so it needs no input data or ordering yet still has extremely low collision odds, making it the most common choice.
Can generated UUIDs really never collide?
With 122 bits of randomness, even generating a billion per second makes a collision astronomically unlikely. It's not a mathematical guarantee, but in practice it's treated as unique.
Are uppercase and no-hyphen formats supported?
Yes. The default is lowercase with hyphens (e.g. 550e8400-e29b-41d4-a716-446655440000); you can toggle uppercase conversion and hyphen removal independently.
Are generated UUIDs sent to a server?
No. Generation uses the browser's built-in crypto API (window.crypto) entirely on your device; nothing is transmitted or stored.
Where are the version and variant bits in a UUID v4 string?
In the xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx layout, the first character of the third group is always version 4, and the first character of the fourth group (y) is always one of 8, 9, a, or b — the fixed variant bits. Only the remaining 122 bits are truly random.
How large is a 2^122 collision probability, really?
Using the birthday-paradox approximation, reaching a 50% collision probability requires about 2.71×10^18 UUIDs (2.71 quintillion). Even generating a billion per second nonstop would take roughly 86 years to get there.
How does UUID v7 differ from v4?
v4 is fully random, so inserting it into a database index scatters rows and can hurt performance, while v7 embeds a millisecond timestamp up front so values sort in generation order. But since v7 exposes its creation time, v4 is still preferable when timing needs to stay hidden; this tool supports only v4, the most widely used version.