Unix Timestamp to Date
Any epoch number in, a real calendar date out — local time, UTC, ISO 8601 and a relative reading, all at once. Automatic unit detection uses limited numeric ranges, not a universal date window; choose seconds, milliseconds, microseconds or nanoseconds explicitly when the source unit is known.
UNIX TIMESTAMP INPUT
Date output is floored to milliseconds. Choose a unit explicitly for older dates or values outside auto-detection.
Typical today: 10 (s), 13 (ms), 16 (µs), 19 (ns) digits. A unit heuristic, not a definition. Nnow Ccopy /focus
Local means your device timezone. During a repeated daylight-saving hour, the earlier occurrence is used; use UTC to choose an unambiguous instant.
How many digits does your timestamp have?
Digit count is a contemporary-date heuristic, not a unit declaration. These lengths are typical today; this converter uses different numeric ranges for each automatically detected unit. Use the source schema and an explicit unit for other dates:
| Digits | Unit | Example | Reads as |
|---|---|---|---|
| 10 | seconds | 1712345678 | 2024-04-05 19:34:38 UTC |
| 13 | milliseconds | 1712345678901 | 2024-04-05 19:34:38.901 UTC |
| 16 | microseconds | 1712345678901234 | 2024-04-05 19:34:38.901234 UTC |
| 19 | nanoseconds | 1712345678901234567 | 2024-04-05 19:34:38.901234567 UTC |
These four examples fall within the same second, but their fractional parts make them different instants. When a conversion produces an implausible date, check for a unit mismatch:
- A date in January 1970 — 10-digit seconds went into something expecting milliseconds, so the value is a thousand times too small. Multiply by 1,000, or tell the tool the unit is seconds.
- A date tens of thousands of years out — 13-digit milliseconds read as seconds. Divide by 1,000 for seconds, or multiply by 1,000 to get microseconds.
- The right date, minus its decimals — a 13-digit millisecond value truncated to 10 digits. Nothing is misaligned; the sub-second part is simply gone, so keep all 13 digits when you need to order events inside one second.
What the four output rows mean
- Local time — the same instant rendered for your device timezone. Useful for "when will this log line have happened on my wall clock".
- UTC standard — the instant with no timezone offset applied. This is how timestamps should be stored.
- ISO 8601 — machine-readable
YYYY-MM-DDTHH:MM:SS.mmmZ; theZsuffix means UTC. Full rules on the Unix timestamp to ISO 8601 page. - Relative — distance from now ("3 months ago"), the reading you want when triaging log entries.
Two people in Berlin and Tokyo converting 1712345678 get different local rows but the same UTC row — which is why distributed systems pass epoch seconds around and only format them at the edge.
Convert it in code
The converter above answers "what date is this number". When the number lives inside code instead, these are the one-liners that do the same thing — and the unit each language actually expects:
- Python —
datetime.fromtimestamp(ts, tz=timezone.utc); droptzand you silently read the server clock. Full patterns on Python timestamps. - JavaScript —
new Date(ts * 1000);Dateaccepts milliseconds, so a 10-digit value without×1000lands in 1970. Recipes on JavaScript timestamps. - Excel / Sheets — enter
A2/86400+DATE(1970,1,1)as a formula (Excel needs the leading=), then format the cell as a date; a 13-digit column needs/86400000instead. Spreadsheets count days, not seconds. The reverse direction is on Excel to Unix. - SQL — Postgres
to_timestamp(ts), MySQLFROM_UNIXTIME(ts), SQL ServerDATEADD(second, ts, '1970-01-01'); all three take seconds unless the type says otherwise. Dialects compared on SQL timestamps.
Common timestamps
When a converted date looks wrong, compare it against an anchor before touching the code — these values pin down both the unit and the epoch:
0→ 1970-01-01 00:00:00 UTC — may be a real date or an empty-field sentinel; check the schema.946684800→ 2000-01-01 00:00:00 UTC — Y2K, the first date most legacy tests use.1234567890→ 2009-02-13 23:31:30 UTC — the classic "nice number" test value.1700000000→ 2023-11-14 22:13:20 UTC — the round billion pasted into test suites.2000000000→ 2033-05-18 03:33:20 UTC — the next round billion, still seconds.2147483647→ 2038-01-19 03:14:07 UTC — the signed 32-bit maximum, the Y2038 boundary.
These values can be real timestamps, fixtures or sentinels; the number alone cannot tell you which. Check the field definition and surrounding records before treating an anchor value as missing data.
ANSWERS
01 What date is Unix timestamp 1700000000?
Tuesday 14 November 2023, 22:13:20 UTC. In UTC+8 that evening is Wednesday 15 November 06:13:20 — same instant, different wall clock. Type the number into the converter above to see every rendering at once.
02 Why does my timestamp convert to 1970?
A unit mismatch is a common cause: contemporary seconds interpreted as milliseconds land near January 1970. Zero may also be a real epoch date or a missing-value marker. Digit count is only a heuristic; confirm the source unit, rather than treating the automatic detector’s limited ranges as proof of the unit.
03 Is the Unix epoch always in UTC?
The Unix epoch is 1970-01-01 00:00:00 UTC. POSIX time does not count leap seconds; it is not a continuous TAI second count. The value is timezone-independent, and a timezone is applied when interpreting calendar input or displaying the result.
04 What dates does a 10-digit timestamp cover?
Positive 10-digit seconds run from 1,000,000,000 (9 September 2001) to 9,999,999,999 (20 November 2286). That range applies only when the unit is seconds, not to every 10-digit number; signed 32-bit values stop earlier, at 2,147,483,647 — the Y2038 boundary.
05 Does this conversion run on a server?
No. The conversion is plain JavaScript in your browser — open DevTools Network, paste a value, and you will see that no request carries it. Safe for timestamps that hint at production data.