What is a Unix timestamp?
A Unix timestamp, or epoch time, is the number of seconds since 1 January 1970 00:00:00 UTC. This converter turns epoch values in seconds, milliseconds, microseconds or nanoseconds into human-readable dates, detecting the unit automatically, and converts any date and time back to a timestamp. It shows ISO 8601, RFC 2822, your local time and any IANA time zone, plus the current timestamp updating live.
How to convert a Unix timestamp to a date
- 1
Paste the timestamp into “Timestamp”. The unit (seconds, milliseconds, microseconds) is detected automatically.
- 2
Pick a time zone to see the date in ISO 8601, RFC 2822 and a readable local format.
- 3
To go the other way, choose a date and time under “Date to timestamp” and copy the epoch value.
- 4
Use the live counters at the top to copy the current Unix time.
Key features
Automatic unit detection
10-digit values are read as seconds, 13-digit values as milliseconds, 16-digit values as microseconds. You can also force a unit.
Any time zone
Choose any IANA time zone such as America/New_York or Asia/Tokyo; daylight saving time is applied correctly.
Developer formats
Copy ISO 8601 with offset, RFC 2822, UTC, the day of the year and the ISO week number.
Live current timestamp
The current epoch time in seconds and milliseconds updates every second and can be copied or loaded into the converter.
Frequently asked questions
What is the Unix epoch?
The Unix epoch is 1 January 1970 at 00:00:00 UTC. A Unix timestamp counts the seconds elapsed since then, ignoring leap seconds.
How do I know if a timestamp is in seconds or milliseconds?
Count the digits. Dates around today have 10 digits in seconds (for example 1700000000) and 13 digits in milliseconds (1700000000000). JavaScript’s Date.now() returns milliseconds.
How do I convert a Unix timestamp to a date in JavaScript?
Multiply seconds by 1000 and pass the result to the Date constructor: new Date(1700000000 * 1000).toISOString().
What is the Year 2038 problem?
Systems that store the timestamp as a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC, when the value passes 2,147,483,647. Using 64-bit integers avoids it.
Does a Unix timestamp depend on the time zone?
No. A timestamp identifies one exact instant worldwide. The time zone only matters when you display it as a calendar date and clock time.