How to Convert Epoch Time to a Date
Updated 2026-06-21
To convert an epoch timestamp to a date, paste the number into a Unix-to-date converter and read the result. A 10-digit number is seconds since January 1, 1970 UTC; a 13-digit number is milliseconds. The Epoch & Date Converter detects which you have and shows the date in ISO 8601, UTC, and your local timezone instantly.
Convert a Unix timestamp to a date
- Open the Epoch & Date Converter.
- Type or paste your timestamp into the Timestamp to Date field, for example 1716239022.
- Read the output: the ISO 8601 string in UTC, a plain UTC string, the same moment in your chosen timezone, the day of the week, and a relative label like "2 years ago."
- Click any copy button to grab the format you need.
By default the tool auto-detects the unit: 13 or more digits are read as milliseconds, fewer as seconds. If your data uses a unit the heuristic guesses wrong, switch Interpret as to Seconds or Milliseconds to force it. The "Detected unit" readout always tells you exactly how the number was parsed.
Pick the right timezone
Epoch time has no timezone — it is a single instant counted from the Unix epoch. The display, though, depends on where you are. Use the zone switcher at the top to render the same instant in Local, UTC, New York, London, Tokyo, or Kolkata. This is the fastest way to answer "what time was this for a user in another region?" without doing offset math in your head. The ISO 8601 field always stays in UTC so you have one unambiguous reference.
Go the other way: date to timestamp
Need a Unix timestamp from a calendar date? Use the Date to Timestamp side. Pick a date and time with the picker, or type free text into the optional field — formats like 2024-05-20T18:30:00Z or May 20 2024 both parse. You get the value back in Unix seconds and milliseconds, plus the ISO string, ready to copy into code, a database query, or an API call.
Batch convert and copy code
Working with a log file or a column of timestamps? Expand Batch convert, paste one timestamp or date per line, and get a table with seconds, milliseconds, ISO UTC, and your selected zone for every row. Export the whole set as CSV with one click. The tool also includes ready-to-paste code snippets in 12 languages — Python, JavaScript, Java, Go, SQL, and more — so you can parse the same timestamp in your own stack.
A quick gotcha: a 10-digit value read as milliseconds lands in 1970, and a 13-digit value read as seconds lands tens of thousands of years out. If a result looks absurd, flip the unit.
Everything runs entirely in your browser. Your timestamps, logs, and dates are never uploaded to a server, so even sensitive production data stays on your machine. No signup, no limits.
Ready to decode that timestamp? Open the Epoch & Date Converter and paste your number.