How to use the unix timestamp converter
- Paste a timestamp. The unit (seconds, milliseconds, microseconds or nanoseconds) is detected from its length, or pick it explicitly.
- Read the ISO 8601, UTC and local representations, the relative time and the day of the week. Copy any line.
- To go the other way, pick a date and time; they're interpreted in the selected time zone and shown as seconds and milliseconds.
- Change the time zone dropdown to see the same instant anywhere in the world.
Features
- Live current Unix time with one-click copy in seconds or milliseconds
- Automatic unit detection with manual override
- Any IANA time zone, with daylight-saving handled by the browser's Intl engine
- Relative time (in 3 days, 2 hours ago) and day of week
- Date-to-timestamp with a zone-aware conversion
What a Unix timestamp is
Unix time counts seconds since 00:00:00 UTC on 1 January 1970, the Unix epoch, ignoring leap seconds. It's the most common way to store and exchange moments in time because it's a single number with no time zone ambiguity. JavaScript, Java and most databases use milliseconds instead, which is why a 13-digit value is a millisecond timestamp and a 10-digit value is seconds.
A timestamp names an instant, not a wall-clock time. 1700000000 is 22:13:20 UTC on 14 November 2023 everywhere; it's 03:43:20 the next morning in India and 14:13:20 in California. That's why the converter asks for a zone only when displaying or when turning a wall-clock time back into an instant.
Unit detection
Values up to 11 digits are read as seconds, 12–14 digits as milliseconds, 15–17 as microseconds and longer as nanoseconds. Decimal seconds such as 1700000000.5 are supported. If a value was stored in an unusual unit, choose it manually.