UUID जनरेटर
अपनी IDs आसान बनाएं — तुरंत यूनीक UUID जनरेट करें।
Free online UUID and unique ID generator. Generate cryptographically secure UUIDs (v4, v1, v7), ULIDs, NanoIDs, CUID2s, Short IDs, and custom-format IDs in bulk up to 1000. Export as plain text, JSON, CSV, SQL, XML, TypeScript, or Python. Includes a UUID parser/validator with timestamp extraction and color-coded segment breakdown, a collision tester, and a custom template builder with localStorage persistence.
—
कैसे इस्तेमाल करें
8 ID फॉर्मेट में से चुनें: UUID v4 (रैंडम), v1 (timestamp), v7 (sortable), ULID, NanoID, CUID2, Short ID, या Custom टेम्पलेट बनाएं। Quick UUID पैनल में तुरंत कॉपी के लिए लाइव UUID v4 दिखता है।
1 से 1000 तक कोई count डालें, या preset tap करें। Output format चुनें: plain text, JSON array, JSON objects, CSV, SQL INSERT, XML, TypeScript, या Python।
सभी IDs तुरंत पाने के लिए Generate पर क्लिक करें। Plain text मोड में हर ID अलग से कॉपी हो जाती है। सब एक साथ लेने के लिए Copy All, या फ़ाइल सेव करने के लिए Download।
UUID Parser टैब पर जाएं और किसी भी UUID को validate करें — उसका version, variant, timestamp और 7 वैकल्पिक फॉर्मेट देखें। Compare Types से अपने प्रोजेक्ट के लिए सबसे अच्छा ID फॉर्मेट चुनें।
UUID क्या हैं और ये क्यों ज़रूरी हैं?
A UUID (Universally Unique Identifier), also called a GUID (Globally Unique Identifier), is a 128-bit identifier standardised in RFC 4122. The core guarantee is that a UUID generated independently on any machine will never collide with another UUID — without coordination between systems. This makes UUIDs essential for distributed databases, microservices, event sourcing, and any context where you need an ID before inserting into a database or coordinating with a central server.
UUID Versions समझाए गए
- UUID v4 (Random) — 122 bits of cryptographic randomness. No timestamp component. The most widely used version because it reveals nothing about creation time or location. Use this when uniqueness and privacy matter more than sortability.
- UUID v1 (Timestamp + MAC) — Encodes a 60-bit Gregorian timestamp (100-nanosecond intervals since Oct 15, 1582) plus a node ID. This implementation uses a random node (multicast bit set) to protect privacy. Chronologically sortable within the same node.
- UUID v7 (Unix Epoch, RFC 9562) — 48-bit Unix millisecond timestamp in the first 6 bytes, 74 bits of randomness thereafter. Naturally sortable by database B-tree indexes. The recommended replacement for v1 in new applications.
वैकल्पिक ID फ़ॉर्मेट
- ULID (Universally Unique Lexicographically Sortable Identifier) — 10-character Crockford Base32 timestamp (48 ms) + 16-character random component = 26 characters total. Lexicographically sortable, case-insensitive, and 30% shorter than a UUID with hyphens.
- NanoID — URL-safe, compact, configurable length. Uses rejection sampling to eliminate modulo bias. Default 21 characters with alphanumeric alphabet achieves approximately 126 bits of collision resistance.
- CUID2 — Collision-resistant, fingerprint-resistant. Always starts with a letter, lowercase only, suitable for HTML IDs and CSS class names. Good default for JavaScript applications.
- Short ID — Human-readable configurable-length IDs from multiple character sets. Useful for order numbers, referral codes, and user-facing references.
- Custom Template — Combine any of the above generators with static text, timestamps, and sequence numbers using a simple
{token}syntax.
Output Formats
Generated IDs can be exported in 8 formats ready to paste directly into your code: plain text (one per line, click-to-copy), JSON array, JSON object array (with a configurable key), CSV (with header), SQL INSERT statement (configurable table and column), XML, TypeScript const array, and Python list.
UUID Parser & Validator
The Parser tab accepts any UUID string — with or without hyphens, in URN format (urn:uuid:…), or wrapped in braces. It extracts the version and variant, decodes the embedded timestamp for v1 and v7 UUIDs, renders a colour-coded segment breakdown, and shows 7 alternative representations including Base64 and integer encoding.
Collision Tester
The Collision Test generates up to 1 million UUIDs and checks every single one against a Set for duplicates. The test runs in non-blocking 5,000-ID chunks so the browser stays responsive. After completion it displays the theoretical collision probability alongside the empirical result.
Cryptographic Randomness
All generators on this tool use crypto.getRandomValues() — the browser's cryptographically secure pseudo-random number generator (CSPRNG). Math.random() is never used. NanoID uses rejection sampling to eliminate modulo bias. This means every ID is as random as your browser's entropy pool allows.
गोपनीयता
All generation happens locally in your browser. No IDs, templates, or custom formats are sent to any server. Saved templates are stored only in your browser's localStorage and never leave your device.
अक्सर पूछे जाने वाले प्रश्न
UUID (Universally Unique Identifier) एक 128-bit number है जिसे किसी भी machine पर बिना किसी coordination के independently generate किया जा सकता है। UUID v4 में 122 bits की randomness होती है, यानी दो randomly generated UUIDs के टकराने की संभावना लगभग 5.3 × 10³⁶ में 1 है — व्यावहारिक रूप से असंभव। Collision Test में आप खुद 10 लाख UUID generate करके यह verify कर सकते हैं कि कोई duplicate नहीं मिलेगा।
UUID v4 पूरी तरह random है — बिना किसी timestamp के 122 bits की cryptographic randomness। UUID v7 पहले 6 bytes में 48-bit Unix millisecond timestamp embed करता है, जिससे बाद में generate हुए UUIDs पहले वालों के बाद sort होते हैं। यह database performance के लिए अहम है: UUID v4 को primary key बनाने पर rows B-tree index में random positions पर insert होती हैं, जिससे page splits और fragmentation होता है। UUID v7 auto-increment integer की तरह index के अंत में insert होता है, जिससे locality बनी रहती है।
UUID (Universally Unique Identifier) और GUID (Globally Unique Identifier) दोनों एक ही 128-bit identifier को कहते हैं। "GUID" Microsoft का term है, जो .NET, SQL Server, और COM में इस्तेमाल होता है। "UUID" IETF standard (RFC 4122) का term है। दोनों एक-दूसरे की जगह इस्तेमाल किए जा सकते हैं और format भी एक जैसा है।
ULID 26 characters का होता है, जबकि hyphens वाला UUID 36 characters का — यानी 28% छोटा। यह lexicographically sortable है (नए IDs पुराने के बाद sort होते हैं), case-insensitive है, और Crockford's Base32 इस्तेमाल करता है जिसमें ambiguous characters नहीं होते (O, I, L नहीं)। distributed log systems, event streams, या जहाँ भी एक छोटा, sortable ID चाहिए जो URL और filename के लिए भी safe हो, वहाँ ULID बढ़िया काम करता है।
हाँ, कुछ बातें ध्यान में रखनी होंगी। UUID v4 PostgreSQL, MySQL, और SQL Server जैसे B-tree databases में index fragmentation पैदा करता है क्योंकि random IDs random positions पर insert होते हैं। database PKs के लिए UUID v7 या ULID prefer करें — दोनों में timestamp embed होता है इसलिए नई rows हमेशा index के अंत में insert होती हैं, जैसे auto-increment में होता है। अगर v4 इस्तेमाल करना ज़रूरी हो, तो index performance के लिए उसे varchar(36) की बजाय binary(16) type में store करें।
UUID v1 के लिए, parser 60-bit Gregorian timestamp (15 अक्टूबर 1582 से 100-nanosecond intervals) extract करके उसे human-readable UTC date और time में बदलता है। UUID v7 के लिए 48-bit Unix millisecond timestamp extract होता है। यह RFC 4122 variant byte भी identify करता है, colour-coded segment breakdown (time-low, time-mid, version, variant, node/random) दिखाता है, और standard, no-hyphens, uppercase, URN, braces, Base64, और integer समेत 7 alternative representations देता है।
हाँ। सारी randomness crypto.getRandomValues() से आती है, जो browser का cryptographically secure RNG है। कुछ भी server-side generate नहीं होता और network पर कुछ transmit नहीं होता — सब कुछ आपके browser के JavaScript engine में होता है। Generate किए गए IDs database primary keys, session tokens, correlation IDs, और दूसरे production uses के लिए उपयुक्त हैं। security-sensitive tokens (API keys, session cookies) के लिए HTTPS और उचित rotation policies का भी इस्तेमाल ज़रूर करें।
custom template में curly-brace tokens को static text के साथ मिलाया जा सकता है: {v4} UUID v4 डालता है, {v7} UUID v7 डालता है, {ulid} एक ULID डालता है, {nano} 21-character NanoID डालता है, {random:N} N random alphanumeric characters डालता है, {ts} current Unix timestamp milliseconds में डालता है, {date} आज की तारीख YYYYMMDD format में डालता है, और {seq} एक sequential counter डालता है। जैसे, ORDER-{date}-{random:6} से ORDER-20260318-k8Mn2X जैसे IDs बनते हैं।