UUID Generator

This tool generates random version 4 UUIDs, also known as GUIDs, instantly and for free, as many at a time as you need. A UUID, or universally unique identifier, is a 128-bit value written as 32 hexadecimal characters in five groups separated by hyphens, such as the familiar 8-4-4-4-12 pattern. Developers reach for UUIDs whenever they need an identifier that is practically guaranteed to be unique without coordinating with a central server: primary keys in databases, request and transaction IDs, file and object names, session tokens and message identifiers. The version 4 variant is built almost entirely from random bits, which is why the chance of two ever colliding is so vanishingly small that they can be generated independently on different machines with confidence. This generator uses your browser's cryptographically strong random source where available, so the values are suitable for real use rather than just demonstration. You choose how many UUIDs you want and they appear immediately, one per line, ready to copy into your code, database seed, configuration file or test fixtures. A regenerate button gives you a fresh batch whenever you need one. Everything happens locally in your browser, so the identifiers are never sent anywhere, which matters when they are used as keys or tokens. A quick note on format: version 4 UUIDs always have the digit four at the start of the third group and one of eight, nine, a or b at the start of the fourth, a useful way to recognise them. Generate one for a quick test or a hundred to seed a dataset.

-

Version 4 (random) UUIDs, generated locally in your browser using a cryptographically strong source where available. Up to 50 at a time.

How it works

A version 4 UUID is built from random bits, with a few positions fixed to mark the version and variant. The generator requests cryptographically strong random values from the browser, formats them into the standard 8-4-4-4-12 hexadecimal layout, and lists the number you asked for. Each click of regenerate produces a fresh, independent batch.

Worked example

Asking for five UUIDs returns five lines, each a value like 3f2504e0-4f89-41d3-9a0c-0305e82c3301. Notice the four at the start of the third group, which marks version four, and the eight, nine, a or b at the start of the fourth group, which marks the variant. Each is unique and ready to paste into code or a database.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

© 2019 to 2026 Calculate.co.nz. All rights reserved.