Unix Time Precision Converter
Different systems use different Unix timestamp precisions: PostgreSQL `now()` is microseconds, `Date.now()` in JS is milliseconds, Go `time.Unix()` takes seconds, gRPC `Timestamp` is seconds+nanos, Prometheus is float seconds, syslog is nanoseconds. When you copy a number from a log line and don't know the unit, this tool auto-detects (based on magnitude — billions = s, trillions = ms, etc.) and shows all four precisions plus human-readable formats: ISO 8601, RFC 2822 (UTC), local time, and 'X seconds ago / from now'. You can override the auto-detection if you know the source unit.
- seconds (s)1787274498
- milliseconds (ms)1787274498000
- microseconds (µs)1787274498000000
- nanoseconds (ns)1787274498000000000
- UTC2026-08-21 01:08:18.000 UTC
- ISO 86012026-08-21T01:08:18.000Z
- RFC 2822Fri, 21 Aug 2026 01:08:18 GMT
- LocalFri Aug 21 2026 01:08:18 GMT+0000 (Coordinated Universal Time)
- Relative9s ago
Auto-detect uses magnitude (~10^9 = s, ~10^12 = ms, etc.). Override if your timestamp is far past/future.
How to use
- Paste a number — commas, underscores, and whitespace are stripped.
- Auto-detection picks s/ms/us/ns by magnitude. Override with the dropdown if it's wrong.
- All four precisions and four datetime formats display side-by-side. Copy whichever your destination expects.
Frequently asked questions
- How does auto-detection work?
- Modern timestamps fall in predictable magnitude ranges: a unix-seconds value for 2026 is around 1.78×10^9, ms is 1.78×10^12, us is 1.78×10^15, ns is 1.78×10^18. We pick the precision whose decade range your number falls into. Override if the value is unusual (e.g. a future date 100 years out).
- Why might microsecond/nanosecond outputs lose precision?
- JavaScript Number is a 64-bit float with 53 bits of mantissa — enough for ms precision over Date's full range, but ns values past 2^53 lose precision in the lower digits. For exact nanosecond math at large values, use a library like BigInt or display only the relevant digits.
- What's the relative time based on?
- Your browser's current time at page render. Refresh to update. Useful for sanity-checking whether a log timestamp is recent or old.
Related tools
Unix Timestamp Converter
Convert Unix timestamps to dates and dates back to timestamps.
Epoch Time Converter (Unix, FILETIME, Excel)
Convert a single moment in time between 11 historical epoch formats: Unix seconds and ms, NTP, Windows FILETIME, .NET DateTime Ticks, Mac HFS+, Apple Cocoa CFAbsoluteTime, Excel 1900 and 1904 serial, ISO 8601, and RFC 2822.
Date Format Converter
Type any date (ISO, RFC, Unix epoch, locale) and see it rendered in 14+ standard formats side by side.
Duration Formatter
Convert a duration between human ("1h 30m"), clock (1:30:00), ISO 8601 (PT1H30M), and raw seconds/minutes/hours/days.
Duration Calculator
Add and subtract time durations in hours, minutes and seconds — get the total as h:m:s plus decimal hours, total minutes and total seconds.
UUID Inspector (Version, Variant, Time)
Paste any UUID to see its version (1–8), variant, and — for time-based v1, v6, and v7 — the embedded creation timestamp, clock sequence, and node/MAC, all decoded in your browser.