Unix Timestamp Converter

Convert between Unix epoch timestamps and human-readable dates.

Loading tool…

Unix Timestamp ConverterConvert a Unix epoch timestamp into local time, UTC, ISO 8601 and a relative phrase like "3 minutes ago" — seconds vs milliseconds are detected automatically. The reverse direction takes a date-time picker and produces both second and millisecond epochs with copy buttons. Everything runs locally in your browser.

What is Unix Timestamp Converter?

A Unix timestamp converter that turns epoch time into human-readable dates and back, entirely in your browser. Paste a Unix epoch and it auto-detects whether the number is in seconds or milliseconds (values whose absolute size is 1e12 or greater are treated as ms), then shows the detected unit, a relative phrase like "3 minutes ago," your local time, UTC, and a copyable ISO 8601 string. The reverse direction takes a date-and-time picker and produces both second and millisecond epoch values with copy buttons. Developers, DevOps engineers, and anyone debugging logs, APIs, databases, or token/cookie expiry use it to quickly convert Unix time, epoch seconds, and milliseconds to a readable date or convert a date to a timestamp.

How to use Unix Timestamp Converter

  1. To convert a timestamp to a date, type or paste a Unix epoch into the Unix epoch field (or click Now to insert the current epoch in seconds).
  2. Read the results: Detected unit (seconds or milliseconds), Relative, Local time, and UTC — seconds vs milliseconds are detected automatically.
  3. Click the copy button next to the ISO 8601 output to copy the standardized date string.
  4. To convert a date to a timestamp, use the Date & time (local) picker (or click Now to fill the current moment; Clear empties it).
  5. Copy the generated Epoch (seconds) or Epoch (milliseconds) value with its copy button.

Examples

Epoch seconds to ISO 8601

Input

1718000000

Output

2024-06-10T06:13:20.000Z

Millisecond epoch auto-detected

Enter 1718000000000 (13 digits, ≥ 1e12) and the Detected unit shows 'milliseconds' instead of 'seconds', resolving to the same instant as 1718000000 in seconds.

Date picker to epoch

Pick a date and time in the Date & time (local) field and the tool outputs both Epoch (seconds) and Epoch (milliseconds); the exact numbers depend on your local timezone offset.

Frequently asked questions

Does it support both seconds and milliseconds?
Yes. When converting an epoch to a date it auto-detects the unit — any value whose absolute size is 1e12 or greater is treated as milliseconds, otherwise as seconds. The Detected unit field tells you which one was used. When converting a date to an epoch it outputs both seconds and milliseconds.
Why does my input show 'Invalid'?
The epoch field accepts whole integers only (an optional leading minus sign is allowed for dates before 1970). Decimal points, letters, or other characters are rejected, and decimal epochs are intentionally not supported.
What output do I get?
From an epoch you get the detected unit, a relative phrase (for example 'in 2 hours' or '3 minutes ago'), full local time, full UTC time, and a copyable ISO 8601 string. From the date picker you get Epoch (seconds) and Epoch (milliseconds).
What does the 'Now' button do?
The Now button next to the epoch field fills in the current time as Unix seconds, and the Now button by the date picker sets it to the current local date and time (to the minute).
Is my data uploaded anywhere?
No. Everything runs locally in your browser — no timestamps or dates are sent to any server, and there is no upload, so it works offline and keeps your data private.

Related tools