DEVELOPER TOOL

Epoch Converter: Unix Timestamp to Date and Back

Paste a Unix timestamp in seconds, milliseconds, microseconds or nanoseconds to see it in UTC and your local time, as ISO 8601, RFC 2822 and relative time. Or pick a date to get its timestamp. Nothing is sent to a server.

Current Unix timestamp — seconds · — ms

Unix timestamp to date

UTC, ISO 8601
UTC, RFC 2822
Local, ISO 8601
Local, RFC 2822
Local, readable
Relative to now
Seconds
Milliseconds
Microseconds
Nanoseconds

Local time zone: —

Date to Unix timestamp

Seconds
—
Milliseconds
—

About this epoch converter

This epoch converter turns a Unix timestamp into a readable date and a date back into a timestamp. A Unix timestamp counts seconds from 00:00:00 UTC on January 1, 1970 and has no time zone of its own, so the converter shows each instant twice: in UTC and in your device's time zone.

How to use the Unix timestamp converter

  1. Paste a timestamp into the first box. Spaces and underscores are ignored, a leading minus sign is allowed, and so is a decimal point.
  2. Check the unit line under the box. If the converter guessed wrong, pick the unit from the menu.
  3. Copy the format you need from the results: ISO 8601 for APIs and logs, RFC 2822 for email and HTTP-style headers, or the plain number in another unit.
  4. To go the other way, pick a date and time in the second box and choose whether it means your local time or UTC.

How the converter reads your number

With the unit on auto-detect, the converter counts the digits before any decimal point, ignoring the sign and leading zeros:

DigitsRead asExample for 2026-01-01 00:00:00 UTC
1 to 11Seconds1767225600
12 to 14Milliseconds1767225600000
15 to 17Microseconds1767225600000000
18 or moreNanoseconds1767225600000000000

For any date from September 2001 to November 2286, seconds have exactly 10 digits, milliseconds 13, microseconds 16 and nanoseconds 19, so the guess is reliable there. Outside that window, such as a millisecond value from the 1970s, the digit count can mislead, and the status line says so whenever the count is not 10, 13, 16 or 19. Choosing a unit from the menu overrides the guess.

The number is converted to nanoseconds with whole-number (BigInt) arithmetic, so a 19-digit nanosecond value keeps every digit in the ISO 8601 output and the unit rows. Only the local, readable line and the relative time are limited to milliseconds. Negative values are rounded toward the past, not toward zero, so -1.5 seconds is 1969-12-31T23:59:58.500Z.

Worked example

The converter opens on 1767225600. It has 10 digits, so it is read as seconds, and the results show:

UTC, ISO 8601     2026-01-01T00:00:00Z
UTC, RFC 2822     Thu, 01 Jan 2026 00:00:00 +0000
Milliseconds      1767225600000

On a device set to US Eastern time, the local lines read 2025-12-31T19:00:00-05:00 and Wed, 31 Dec 2025 19:00:00 -0500: the same instant, still on New Year's Eve in New York. The relative line depends on today's date. Viewed on October 17, 2026, it reads "9 months ago".

The date box below opens on the same instant written in your local time, so its seconds box shows 1767225600 wherever you are. Switch it to UTC and enter January 1, 2026, 00:00:00 to get the same number.

Converting a date to a timestamp

In local mode, the date you pick is read in your device's time zone. Daylight saving time makes two cases tricky. When clocks spring forward, some local times never happen: in New York, 2:30 AM on March 8, 2026 does not exist. When clocks fall back, an hour happens twice: 1:30 AM on November 1, 2026 occurs once in EDT and again in EST. The converter follows JavaScript's rule, described on MDN's Date reference: a missing time moves forward by the gap, so 2:30 AM becomes 3:30 AM EDT (1772955000), and a repeated time uses the earlier occurrence (1793511000). It tells you when either happens and shows the second occurrence (1793514600), which is one hour later. UTC mode has no such gaps, which is why servers usually schedule in UTC.

Output formats

Edge cases and limits

Common mistakes

To read the exp and iat claims in a token, paste it into the JWT Decoder. To see a date in several cities at once, use the Time Zone Converter, and for the gap between two dates, the Date Calculator.

Unix timestamp reference table

Notable timestamps and the start of each calendar year in UTC. Add 000 to any value for milliseconds.

Timestamp (s)UTC date and timeNote
0January 1, 1970, 00:00:00The epoch
1000000000September 9, 2001, 01:46:401 billion seconds
1234567890February 13, 2009, 23:31:301234567890
1500000000July 14, 2017, 02:40:001.5 billion
1700000000November 14, 2023, 22:13:201.7 billion
2000000000May 18, 2033, 03:33:202 billion
2147483647January 19, 2038, 03:14:07Largest signed 32-bit value
1704067200January 1, 2024, 00:00:00Start of 2024
1735689600January 1, 2025, 00:00:00Start of 2025
1767225600January 1, 2026, 00:00:00Start of 2026
1798761600January 1, 2027, 00:00:00Start of 2027
1830297600January 1, 2028, 00:00:00Start of 2028
1861920000January 1, 2029, 00:00:00Start of 2029
1893456000January 1, 2030, 00:00:00Start of 2030

Each day adds 86,400 seconds, so a year adds 31,536,000, or 31,622,400 in a leap year such as 2024.

Frequently asked questions

How do I convert a Unix timestamp to a date?

Paste the number into the epoch converter above. It detects the unit from the digit count and shows the moment in UTC and in your local time, as ISO 8601 and RFC 2822 text. For example, 1767225600 is 2026-01-01T00:00:00Z, which is 7:00 PM on December 31, 2025 in New York.

Is my timestamp in seconds, milliseconds, microseconds or nanoseconds?

Count the digits. For dates from 2001 to 2286, seconds have 10 digits, milliseconds 13, microseconds 16 and nanoseconds 19. The converter reads up to 11 digits as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and 18 or more as nanoseconds. Pick the unit yourself if your value is older or unusual.

What is the current Unix timestamp?

The live clock at the top of the converter shows it in seconds and milliseconds, read from your device's clock and updated every second. The value is the same everywhere in the world at a given moment, because it counts from a fixed UTC instant. If your device clock is wrong, the value is off by the same amount.

What is the Unix timestamp for January 1, 2026?

Midnight UTC on January 1, 2026 is 1767225600 in seconds, or 1767225600000 in milliseconds. Because the value is in UTC, local midnight is a different number. In US Eastern Standard Time, which is five hours behind UTC, local midnight that day is 1767243600, which is 18,000 seconds later.

Can a Unix timestamp be negative?

Yes. A negative timestamp counts seconds before the epoch, midnight UTC on January 1, 1970. For example, -86400 is exactly one day earlier, December 31, 1969, and -31536000 is January 1, 1969. The converter accepts negative values in every unit, back to April 20, 271821 BC, the earliest date JavaScript can represent.

Why is my local time off by an hour around daylight saving time?

On the spring-forward day some local times never happen, and on the fall-back day one hour happens twice. In New York, 2:30 AM on March 8, 2026 does not exist, so it moves forward to 3:30 AM EDT, 1772955000. 1:30 AM on November 1, 2026 happens twice: the converter uses the first, 1793511000, and also shows the second, 1793514600.

What happens to Unix timestamps in 2038?

A signed 32-bit integer can't hold values above 2147483647, which is 03:14:07 UTC on January 19, 2038, so software that still stores time that way will overflow. JavaScript, Python and 64-bit systems are not affected. The converter warns about any value outside the 32-bit range so you can spot fields that may break.