About the Unix Timestamp Converter
A Unix timestamp counts the seconds since 1 January 1970 00:00:00 UTC, and it is how most databases, APIs and log files store time. Paste one here to see it as a readable date in UTC and in your own time zone, in ISO 8601 and RFC 2822 format, and relative to now.
The converter detects automatically whether your value is in seconds, milliseconds or microseconds. It also works the other way round: pick a date and time to get its timestamp. Everything runs locally in your browser — nothing you paste is sent to a server.
Last reviewed November 21, 2026
How automatic unit detection decides
In Auto mode the converter looks only at the size of the number (its absolute value, so negative timestamps before 1970 work too):
| Absolute value | Read as | Example | Result (UTC) |
|---|
| below 100,000,000,000 (10^11) | seconds | 1795000000 | 2026-11-18T11:06:40.000Z |
| 10^11 up to 10^14 | milliseconds | 1795000000000 | 2026-11-18T11:06:40.000Z |
| 10^14 and above | microseconds | 1795000000000000 | 2026-11-18T11:06:40.000Z |
The thresholds work because they fall in dates nobody uses: 10^11 seconds is the year 5138, and 10^11 milliseconds is 3 March 1973. So any seconds value up to the far future and any milliseconds value after early 1973 is detected correctly. Decimal values such as 1795000000.5 are accepted; the result can represent any instant JavaScript dates can hold, about 273,000 years either side of 1970.
When Auto gets it wrong
- Small millisecond values. 86400000 is one day after the epoch in milliseconds, but Auto reads it as seconds and shows 27 September 1972. Durations and test fixtures near the epoch need the unit set by hand.
- Nanoseconds. Go’s UnixNano, Linux kernel tracing and several databases use 19-digit nanosecond values. Auto treats them as microseconds, which lands in the year 58,851. There is no nanosecond option; drop the last three digits and use microseconds.
- Other epochs. .NET ticks (100 ns since year 1), Windows FILETIME (since 1601) and Excel serial dates (days since 1900) are not Unix time at all. A suspiciously far-future result is often one of these.
Worked example: one instant, every format
Enter 2147483647, the largest value a signed 32-bit integer can hold:
- Detected: seconds
- ISO 8601: 2038-01-19T03:14:07.000Z
- RFC 2822 style: Tue, 19 Jan 2038 03:14:07 GMT
- Local time: the same instant in your browser’s time zone, with its name
One second later, 2147483648, does not fit in a signed 32-bit field and wraps around to a negative number, which old C code and some embedded systems read as December 1901. That is the year 2038 problem in one line. If you maintain anything that stores time in a 32-bit int (MySQL’s TIMESTAMP type was historically limited to this range), test it with this value.
Unix time ignores leap seconds: every day is exactly 86,400 seconds, so 1 January 2026 00:00 UTC is 1767225600 whether or not leap seconds were inserted before it. That makes arithmetic simple, but it means a Unix timestamp cannot represent the leap second itself.
Going from a date to a timestamp
The date picker interprets what you enter in your browser’s time zone, which is shown in the label. The same wall-clock time entered in London and in Karachi gives timestamps several hours apart. If you need the timestamp for a UTC time, either set your system to UTC or adjust by your offset, and double-check the ISO 8601 line in the result, which is always in UTC (the trailing Z).
- Daylight saving gaps. When clocks jump forward, local times such as 02:30 on the change date do not exist. The browser still returns a timestamp for an adjacent valid instant, so verify any result that falls on a DST change.
- Seconds or milliseconds? The result shows both. Unix tools, JWT claims and most databases use seconds; JavaScript’s Date.now(), Java’s System.currentTimeMillis() and many JSON APIs use milliseconds. Mixing them up is the most common timestamp bug; for a JWT example see What is a JWT?.
- Store UTC, display local. Keep timestamps or ISO 8601 strings with Z or an offset (RFC 3339) in storage, and convert to the viewer’s zone only for display.
To read the expiry of a token directly, the JWT decoder converts exp and iat for you. To recover the creation time hidden in a version 7 UUID, take its first 12 hex digits as milliseconds; the UUID generator page explains how.
How to use the Unix Timestamp Converter
- Paste a Unix timestamp into the box, or use the live current timestamp.
- Read the date in UTC, your local time, ISO 8601 and relative form.
- To go the other way, choose a date and time and copy the timestamp in seconds or milliseconds.
Frequently asked questions
What is the Unix epoch?
The epoch is 1 January 1970 at 00:00:00 UTC. A Unix timestamp is the number of seconds (or milliseconds) that have passed since then, ignoring leap seconds.
How do I know if a timestamp is in seconds or milliseconds?
Current timestamps in seconds have 10 digits (e.g. 1700000000); in milliseconds they have 13 digits. The converter detects this automatically, or you can choose the unit yourself.
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit integers overflow on 19 January 2038. Modern systems use 64-bit values, which last for billions of years.
Learn more