Unix Timestamp Converter
Convert between Unix epoch timestamps and human-readable dates.
Unix Timestamp Converter — Convert 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
- 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).
- Read the results: Detected unit (seconds or milliseconds), Relative, Local time, and UTC — seconds vs milliseconds are detected automatically.
- Click the copy button next to the ISO 8601 output to copy the standardized date string.
- To convert a date to a timestamp, use the Date & time (local) picker (or click Now to fill the current moment; Clear empties it).
- 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
Base32 / Base58 Encode / Decode
Encode text to Base32 (RFC 4648) or Base58 (the Bitcoin alphabet) and decode either one back to text, fully UTF-8 safe and entirely in your browser.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text (UTF-8 safe).
Case Converter & Counter
Change text case and count characters, words and lines.
Code Formatter & Minifier
Beautify or minify HTML, CSS and JavaScript instantly in your browser, with 2-space, 4-space or tab indentation and Terser-powered JavaScript compression.