Unix Hex Timestamp Converter. Epoch Time in Hexadecimal
Hexadecimal epoch values show up in kernel Oops messages, crash dumps, firmware logs, and packet captures. This converter reads them straight, and hands you the hex for any date you type.
Unix time, in hexadecimal.
Read and write epoch seconds as hex (the format you meet in kernel logs, memory dumps, and packet captures. Plain base-16 arithmetic, no lookups.
Why hex timestamps exist
Unix time is just a counter, and counters are displayed however the code chooses.
Low-level code that prints or parses raw integers often uses hex because it is
unaligned with the byte boundary, a 32-bit counter is a natural
0x… value. So the same instant reads 1786073427 in
decimal and 0x6A740B93 in hex, and tools that format with
%x instead of %d produce the second form.
The epoch value itself is identical, hex is just a display format. The converter
accepts either spelling (0x66B2D800 or 66B2D800) and
treats the digits as seconds, matching the overwhelmingly common convention. If
your value is milliseconds in hex, the Hex (ms) row shows both readings.
Worked examples
-
0x66B2D800→1722752000→ Aug 4, 2024 06:13:20 UTC. The leading0xis optional; the converter strips it. -
Aug 7, 2026 00:00:00 UTC→ decimal1786060800→ hex0x6A718900, the value you would log for "start of that day". -
The "Now" button fills
0xplus the current epoch in hex, the fastest way to grab a sample for a test case.
In your own code
- JavaScript:
Math.floor(Date.now() / 1000).toString(16), add0xyourself. - Python:
hex(int(time.time()))→'0x…'. - C:
printf("0x%08X", (unsigned)time(NULL)), the classic kernel-log form. - Parsing back:
parseInt('66B2D800', 16)in JS, orint('66B2D800', 16)in Python.
Gotchas
-
Signed vs unsigned, before 2038 every epoch fits in 31 bits, so
the top bit is never set. Values for dates after the 2038 overflow look like
0x80000000-style numbers and will not parse in signed 32-bit debuggers. -
Seconds by default, some embedded stacks store
milliseconds in hex (JavaScript
Date.now()dumped as hex). If your hex is ~11 digits like0x186A0B5D8E0, it is milliseconds — the converter's Hex (ms) row confirms the reading. - Endianness, bytes on the wire may appear little-endian. This converter reads the number the way you type it; reverse the byte order first if your capture looks scrambled.
Related tools
Once decoded, plug the decimal seconds into the Unix timestamp to date converter for any timezone, or use the date to epoch converter to reverse it. If your hex came from an NTP packet, the NTP timestamp converter decodes its 64-bit form.
First published · Last reviewed · Maintained and developed by the Real Epoch Converter team · [email protected] · Contact · Methodology
Sources & references
More timestamp tools
- Epoch time converter — the free online epoch converter
- Unix timestamp to date converter
- Date to epoch converter
- Milliseconds to epoch converter
- Snowflake ID converter
- LDAP / Active Directory converter
- GPS time converter
- NTP timestamp converter
- .NET ticks converter
- Mac HFS+ timestamp converter
- Excel / OADate converter
- UUID v1 / v7 & ULID converter
- Chrome / WebKit converter
- Cocoa Core Data converter
- Timezone converter
- Day of the year converter
- ISO week number converter
- Unix hex converter
- Year 2038 countdown
- Common Unix timestamps
Need the plain Unix timestamp instead of this format? The epoch time converter on the home page converts dates to Unix timestamps and back — seconds, milliseconds, or microseconds — with batch conversion, and the Unix timestamp to date converter handles one value at a time.
Prefer reading? The guides explain Unix time, timestamp formats, and common bugs in depth, and the methodology page documents exactly how this site handles negative timestamps, fractional seconds, leap seconds, and daylight-saving transitions.