Timestamp Converter
Convert between Unix epoch (seconds, milliseconds, or microseconds), ISO 8601, UTC strings, your local timezone, and relative formats ("3 hours ago", "in 2 days") in one place. Donfig auto-detects whether your numeric input is seconds, milliseconds, or microseconds based on its magnitude. Empty input shows the live current time, ticking once per second. ISO 8601, RFC 2822, and any format JavaScript's Date constructor accepts will parse. Useful for debugging logs, decoding JWT iat/exp claims, or coordinating time across timezones.
JavaScript is required to use the live tool. Please enable JavaScript and reload.
Frequently asked
What's the difference between Unix seconds and milliseconds?
Both count from 1970-01-01 UTC. Seconds is the original Unix convention (10 digits today). Milliseconds is the JavaScript / many APIs convention (13 digits today).
How is 'relative time' calculated?
Difference from now in your local timezone, rendered as 'in N units' or 'N units ago'. Updates live when no input is supplied.
What about timezone-aware timestamps?
Donfig shows both UTC and your local time. ISO 8601 with offset (e.g. 2024-09-12T10:00:00+10:00) parses correctly.