Timestamp to date

11+ digit values treated as milliseconds; shorter values as seconds since 1970-01-01 UTC.

Paste a Unix timestamp from logs or APIs to see the instant in your locale and as ISO UTC. Ideal when you need to read epoch time without opening a terminal.

Timestamp

Seconds use up to 10 digits for recent dates; millisecond values are longer.

Result

How it works

The number is read as an integer or decimal; fractional seconds are truncated when converting to a JavaScript Date.

Large absolute values are interpreted as milliseconds; smaller ones as seconds so typical epoch values work without extra zeros.

Unix time

Unix time counts seconds from the Unix epoch (midnight UTC on 1 January 1970). Your browser applies your local time zone for the first line.

Limits

JavaScript dates cover roughly ±285616 years around 1970; extreme inputs may show as invalid.

Common questions

Seconds or milliseconds?
If the absolute value is at least 100 billion, it is treated as milliseconds.
Negative timestamps?
Yes, for times before 1970.
Is data sent online?
No. Parsing happens only in this page.
Leap seconds?
JavaScript follows the system clock; displayed civil time follows your environment.