Skip to content

Timestamp to Date

To convert a Unix timestamp to date online, paste seconds or milliseconds (commas, underscores, and spaces stripped) or an ISO date — or press Use now / Load example. Force Auto / Seconds / Milliseconds when needed. Read UTC, browser-local, ISO-8601, both Unix units, and relative time, then Copy. Nothing is uploaded.

Updated

Paste a Unix timestamp or an ISO / common date string — or press Use now / Load example. Commas, underscores, and spaces inside numeric pastes are stripped so 1,704,067,200 still parses. The tab detects seconds vs milliseconds (or you force a unit), then shows UTC, browser-local time, ISO-8601, both Unix units, and a relative row (for example "3 days ago"). Copy exports the full bundle including relative. Closing the tab clears the field; nothing is uploaded or written to localStorage.

Unit detection is a simple magnitude rule used by many epoch converters: values whose absolute size is below 1×10¹² are treated as seconds; larger values as milliseconds. The Unit select can force Seconds or Milliseconds when a numeric paste is ambiguous; date strings ignore that override. Date strings use the browser's Date.parse rules. This is not a claim that every locale format parses the same everywhere, and it is not a TZDB editor for historical offsets.

Timestamp to Date workspace

Unix ↔ date

Auto reads magnitude: under 1×10¹² seconds, under 1×10¹⁵ milliseconds, under 1×10¹⁸ microseconds, else nanoseconds. Force Seconds or Milliseconds when a numeric paste is ambiguous. Date strings ignore this override.

Paste a Unix timestamp (seconds, milliseconds, microseconds, or nanoseconds) or an ISO / common date string. Commas, underscores, and spaces inside numbers are stripped. Detection is local — nothing is uploaded.

Converted result

Paste a Unix timestamp or date string above, press Use now for the current Unix seconds, or Load example. Absolute values under 1×10¹² are treated as seconds, under 1×10¹⁵ as milliseconds, under 1×10¹⁸ as microseconds, and larger as nanoseconds (unless you force a unit).

Pure Date math in this tab — not a remote epoch API, not a timezone database editor, and not a claim that every locale string parses the same in every browser. Closing the tab clears the field; nothing is written to localStorage.

How does the Timestamp to Date work?

  1. 1. Paste a timestamp or date

    Enter Unix seconds, milliseconds, microseconds, nanoseconds, or an ISO / common date string. Commas, underscores, and spaces inside numbers are stripped. Use now fills the current Unix seconds; Load example fills 1704067200 (2024-01-01 UTC).

  2. 2. Detect or force the unit

    Auto treats absolute values under 1×10¹² as seconds, under 1×10¹⁵ as milliseconds, under 1×10¹⁸ as microseconds, and larger values as nanoseconds. Force Seconds or Milliseconds when needed. Date strings ignore the override and use Date.parse. Nothing is uploaded.

  3. 3. Read UTC, local, ISO, and relative

    See Unix seconds, Unix milliseconds, UTC, browser-local time, ISO-8601, and a relative distance from now (for example "3 days ago" / "in 2 hours"). Values stay in React state for this tab only.

  4. 4. Copy the result

    Copy exports the full conversion bundle, including the relative row. Closing the tab drops the field. Need a line compare instead? Use Code Diff on this hub.

Questions about Timestamp to Date

What does this Timestamp to Date converter do?
It converts Unix epoch seconds or milliseconds into human-readable UTC and local datetimes, and can parse common ISO / date strings back into Unix values. You get both units, ISO-8601, UTC, browser-local time, and a relative distance from now. Use now fills the current Unix seconds. Everything runs in your browser — no signup and no upload.
Does it upload my timestamp?
No. Conversion is pure in-page Date math. There is no account, no server-side epoch API, and no file upload. Values stay in this tab until you clear them or close the page. We do not write timestamps to localStorage or send them to a remote converter.
How does it decide seconds vs milliseconds?
Auto mode uses honest magnitude detection: if the absolute value is below 1×10¹², the input is treated as Unix seconds; below 1×10¹⁵, Unix milliseconds; below 1×10¹⁸, Unix microseconds (16-digit stamps, for example BigQuery UNIX_MICROS); otherwise Unix nanoseconds (19-digit stamps, for example Go UnixNano or Python time.time_ns). That matches today's ~1.7×10⁹ second, ~1.7×10¹² millisecond, ~1.7×10¹⁵ microsecond, and ~1.7×10¹⁸ nanosecond ranges. Microsecond and nanosecond pastes are cut to whole milliseconds, because that is all a JavaScript Date keeps. The Unit select can force Seconds or Milliseconds when a numeric paste is ambiguous. Date strings ignore the override.
Can I paste numbers with commas or underscores?
Yes. Pure numeric tokens may include commas, underscores, or spaces as thousands separators (for example 1,704,067,200 or 1_704_067_200). Those separators are stripped before parsing. ISO / date strings are left unchanged.
What does Use now and the Relative row do?
Use now fills the current Unix seconds (matching the Load example style). On every successful conversion, Relative shows a simple human distance from now — for example "3 days ago" or "in 2 hours" — using Date math in this tab. Relative is included in the Copy bundle. This is not a TZDB or IANA zone picker.
Why is there no /unix-timestamp-converter/ or /epoch-converter/ second URL?
One canonical address with a trailing slash: /developer/timestamp-to-date/. Queries like "timestamp to date", "unix timestamp to date", or "epoch converter" can land here. We do not publish stub alias slugs that would split the address people and search engines should share, and we do not leave empty converter URLs that 404.
Does it handle timezones?
UTC and ISO-8601 are timezone-agnostic displays. Local time uses your browser's current timezone offset. The page does not let you pick an arbitrary IANA zone or edit the TZDB. For zone-specific historical offsets, use a dedicated timezone library or CLI.
How is this different from Code Diff on this hub?
Code Diff compares two text pastes with a line-oriented LCS. Timestamp to Date converts epoch numbers and date strings. They share the same privacy rule (local only) but solve different jobs — this page does not diff text, and Code Diff does not convert timestamps.
Can it convert a date string back to Unix?
Yes. Paste an ISO-8601 string (for example 2024-01-01T00:00:00.000Z) or another string Date.parse accepts, and the result shows Unix seconds and milliseconds alongside UTC and local. Ambiguous locale formats may differ by browser — prefer ISO when you need a shared answer. The unit override does not apply to date strings.
How do I convert a Unix timestamp to a date in JavaScript?
Use Date with milliseconds: new Date(ts) when ts is ms, or new Date(ts * 1000) when ts is seconds, then call toISOString() for UTC or toString() for local. There is no Date.fromUnix in the language. Paste a value here to check both units and formats; keep production parsing in your own code.
Is anything stored in localStorage?
No. The input field lives in React state for this tab only. Closing the tab clears it, and we do not mirror timestamps into localStorage or cookies. Hosting logs may show that you requested the page URL, not the values you typed.

These tools run in your browser. Page Utils does not store, upload, or write to localStorage the keys, tokens, or text you paste. Results are a convenience aid, not legal, tax, or security advice.