UUID Decoder & Timestamp Converter

    Convert a UUID v1, v6 or v7 to UTC, local time and Unix milliseconds. Paste a UUID or try an example below.

    Decode a UUID

    Accepts hyphenated UUIDs, 32 hex digits, braces and urn:uuid: prefixes. Processing stays in your browser.

    Time-based UUIDs hide a timestamp inside their bits. This decoder reads versions 1, 6 and 7 UUIDs and converts that embedded value back into a human-readable date and time — entirely in your browser.

    For random (v4) and name-based (v3/v5) UUIDs the tool explains why no timestamp can be recovered, so you always know what information an identifier does and does not contain.

    UUID to timestamp: a worked v7 example

    Choose Try v7 example above to decode 017f22e2-79b0-7cc3-98c4-dc0c0c07398f. Its first 12 hexadecimal digits, 017f22e279b0, represent 1645557742000 Unix milliseconds. That is 22 February 2022 at 19:22:22 UTC (2022-02-22T19:22:22.000Z).

    The UTC and Unix-millisecond results describe the same instant. Local time displays that instant in your browser’s time zone. Use the copy buttons beside UTC or Unix milliseconds to take the result into your code or logs. This fixed example is a test value, not a new identifier to use in production.

    How UUID timestamps are decoded

    A version 7 UUID stores a 48-bit Unix millisecond timestamp in its leading bits, so decoding is a direct conversion to a date. A version 1 UUID stores a 60-bit count of 100-nanosecond intervals since 15 October 1582; the decoder reassembles those bits and shifts them onto the Unix epoch to give you a normal timestamp.

    Because the timestamp is part of the identifier itself, no lookup or network call is needed — the decoder derives the time purely from the value you paste.

    What you can and cannot recover

    You can read the claimed timestamp from v1, v6, and v7 UUIDs. You cannot recover any meaningful data from a v4 UUID, because it is random by design, nor from v3/v5 UUIDs, because they are one-way hashes of a namespace and name.

    If you need identifiers whose creation time you can read back later, prefer UUID v7. If you specifically want time-ordering that also sorts lexicographically, v7 and ULID are both good choices.

    Frequently asked questions

    Can you extract the date from a UUID?
    Yes, for time-based UUIDs. Versions 1, 6, and 7 embed a timestamp that this decoder converts back into a readable date and time. Random v4 UUIDs contain no date.
    How do I get the timestamp out of a UUID v7?
    Paste the v7 UUID above. The decoder reads the leading 48 bits as a Unix millisecond timestamp and shows it in UTC, local time, and raw milliseconds.
    Can I convert a UUID v4 to a timestamp?
    No. UUID v4 contains random bits, not an encoded creation time. To find when it was created, look for a separate timestamp in your database or logs. This decoder explains when a UUID has no recoverable timestamp.
    Can I reverse a UUID v5 to get the original name?
    No. UUID v5 is a SHA-1 hash of a namespace and name, which is one-way, so the original inputs cannot be recovered from the UUID.