Unix Timestamp Converter

Paste an epoch timestamp to get UTC and local time, or a date to get its epoch value. Seconds vs milliseconds are detected automatically from the magnitude.



  

How it works

Unix timestamps are timezone-free by definition โ€” a given number is the same instant everywhere; only its human-readable rendering changes with timezone. This converter shows both UTC (ISO 8601) and your local time, plus the value in seconds and milliseconds, since APIs are split on which unit they use (JavaScript's Date.now() is milliseconds; most Unix APIs are seconds).

FAQ

How does it know if my timestamp is seconds or milliseconds?

Values of a trillion or more (13+ digits) are treated as milliseconds; smaller values as seconds. Epoch seconds won't reach 13 digits until the year 33658, so the heuristic is safe.

What is the Unix epoch?

Midnight UTC on January 1, 1970 โ€” the zero point from which Unix time counts seconds. Timestamp 0 is exactly that moment.

Why does the local time differ from what my server logs show?

Local time uses your browser's timezone. Servers usually log in UTC โ€” compare against the UTC line.