Timestamp Converter

Convert a Unix timestamp to a date (ISO 8601, UTC and local time) or a date to epoch seconds. Detects seconds, milliseconds, micro- and nanoseconds.

Runs in your browser. Files never leave your device.

About the Timestamp Converter

Convert a Unix timestamp to a readable date, or a date and time back to a Unix timestamp. Logs, databases and API responses often store time as a long number such as 1700000000 rather than a date, and this epoch converter tells you which moment it means.

Paste a timestamp in seconds, milliseconds, microseconds or nanoseconds and you get ISO 8601 in UTC, ISO 8601 with your own time zone's offset, a readable local date and the HTTP-style UTC string, each with a copy button. Going the other way, pick a date and time in your time zone or in UTC and copy the epoch seconds.

How the conversion works

Unix time counts the seconds since 1 January 1970 at 00:00:00 UTC, the Unix epoch, ignoring leap seconds. Negative numbers are dates before 1970. Because a bare number doesn't say its unit, Auto-detect reads it by size: below 100 billion it's seconds, below 100 trillion milliseconds, below 100 quadrillion microseconds, and anything larger nanoseconds. You can also choose the unit yourself.

The number is read exactly as text, so a 19-digit nanosecond value keeps every digit and the ISO 8601 result shows up to nine decimal places. The local version uses the UTC offset your time zone had on that date, including summer time, so London shows +01:00 in July and Z (zero offset) in January.

date (UTC) = 1970-01-01T00:00:00Z + timestamp seconds
seconds      = milliseconds ÷ 1,000
milliseconds = microseconds ÷ 1,000
microseconds = nanoseconds ÷ 1,000
local time   = UTC time + your zone's offset on that date (e.g. +05:00)

For date to timestamp, the date and time you pick are read as a wall-clock time in the zone you choose. If that time doesn't exist because clocks went forward, it's moved later by the size of the jump, as calendar software does; if it happens twice because clocks went back, you get the first one and the second is shown too.

Assumptions and limits

  • Auto-detect can't tell an early millisecond value from a seconds value: millisecond timestamps before March 1973 have 11 digits or fewer and are read as seconds. Pick Milliseconds from the Unit menu for those.
  • Leap seconds aren't counted, exactly as Unix time defines it, so a timestamp never lands on 23:59:60.
  • Dates reach from about the year −271,821 to 275,760, the range JavaScript dates can show. Scientific notation such as 1.7e9 isn't accepted; type the number out.
  • Values outside the signed 32-bit range (before 13 December 1901 or after 19 January 2038 at 03:14:07 UTC) get a Year 2038 note, because older systems that store time as a 32-bit number can't hold them.
  • The date picker works to the minute, and its result is given in seconds and milliseconds.

Worked examples

Convert a Unix timestamp to a date

1700000000 has 10 digits, so it's read as seconds. In Pakistan (UTC+5) the local results show the same moment five hours ahead.

Input: 1700000000 (seconds)
ISO 8601 (UTC):  2023-11-14T22:13:20.000Z
ISO 8601 (Asia/Karachi): 2023-11-15T03:13:20.000+05:00
UTC string: Tue, 14 Nov 2023 22:13:20 GMT

A JavaScript milliseconds timestamp

Date.now() in JavaScript and many APIs give milliseconds. A 13-digit value is detected as milliseconds and the fraction is kept.

Input: 1700000000123
Read as milliseconds (detected from its size)
ISO 8601 (UTC): 2023-11-14T22:13:20.123Z

Date to epoch, and a clock change

Midnight on 1 January 2025 in UTC is 1735689600; the same wall time in Asia/Karachi is 1735671600, five hours (18,000 seconds) earlier. In New York, 02:30 on 8 March 2026 is skipped when clocks go forward, so it's read as 03:30 local time, timestamp 1772955000.

Common Unix timestamps and their dates

All dates are UTC. Divide a millisecond value by 1,000 to compare it with this table.

Unix timestamp (seconds)Date and time (UTC)
01970-01-01 00:00:00 (the Unix epoch)
-11969-12-31 23:59:59
9466848002000-01-01 00:00:00
10000000002001-09-09 01:46:40
17000000002023-11-14 22:13:20
17356896002025-01-01 00:00:00
17672256002026-01-01 00:00:00
17987616002027-01-01 00:00:00
20000000002033-05-18 03:33:20
21474836472038-01-19 03:14:07 (largest signed 32-bit value)

How to use the Timestamp Converter

  1. Paste the timestamp. Enter the number in the Unix Timestamp box; it starts with the current time in seconds.
  2. Check the unit. Leave Auto-detect on or choose seconds, milliseconds, microseconds or nanoseconds, then copy the ISO, local or UTC result.
  3. Convert a date the other way. Pick a date and time, choose your time zone or UTC, and copy the epoch seconds shown below.

Frequently asked questions

How do I know if a timestamp is in seconds or milliseconds?

Count the digits. A current date in seconds has 10 digits (for example 1767225600) and in milliseconds 13 digits (1767225600000). Microseconds have 16 and nanoseconds 19. Auto-detect does this for you and says which unit it used.

Is a Unix timestamp the same in every time zone?

Yes. A timestamp is a single moment counted from midnight UTC on 1 January 1970, so it's identical in London, Karachi and New York. Only the way it's shown as a local date and time differs, which is why the converter gives both UTC and your local time.

What is the Year 2038 problem?

It's a counter running out. Systems that store Unix time in a signed 32-bit integer reach their limit at 2147483647, which is 03:14:07 UTC on 19 January 2038; one second later the number wraps to a date in 1901. The converter flags any value outside that range so you can check older databases and devices.

How do I get the current Unix timestamp?

Open the page: the timestamp box starts filled with the current time in seconds. In code, use Math.floor(Date.now() / 1000) in JavaScript, time.time() in Python or date +%s in a Linux or macOS terminal.

What does the Z at the end of an ISO 8601 date mean?

It means UTC, the zero offset, so 2023-11-14T22:13:20.000Z is 22:13 in UTC. A date written with an offset such as +05:00 is the same moment shown on a clock five hours ahead of UTC.

Can I convert negative timestamps or dates before 1970?

Yes. Negative values count backwards from the epoch: -86400 is 1969-12-31 00:00:00 UTC, exactly one day before. The date picker also accepts years before 1970 and gives a negative timestamp.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.