Skip to contentSkip to the inputSkip to the result

Unix time converter

Unix time to a date and back

Loading tool

Instructions

Unix time converter

How to use

  1. Enter a number or a date; the kind is detected.
  2. Numbers of 12–14 digits are read as milliseconds, 15–17 as microseconds and 18 or more as nanoseconds.

Supported input

  • Numbers (seconds, milliseconds, microseconds or nanoseconds), YYYY-MM-DD, YYYY-MM-DD HH:MM and ISO 8601.
  • The time zone is this device's, UTC or a major city such as Seoul or New York; a date typed without an offset is read in the chosen zone, and a date alone means midnight there.

Input example

1760000000

Result example

2025-10-09 08:53:20 (UTC)

Troubleshooting

  • Values that are not numbers or are out of range are not calculated; the message says what to fix.

Limitations

  • For a place not on the list, choose a city in the same zone.
  • Leap seconds are not represented.

How it works

  • Converts Unix time in seconds or milliseconds to a date and time, and back.

Turning the long numbers in logs into dates: units by digit count, daylight saving and dates before 1970

Where these numbers turn up

  • A log line or database column holding nothing but a ten-digit number such as 1761300000
  • The 13-digit millisecond value JavaScript’s Date.now() returns
  • Sixteen-digit microsecond and nineteen-digit nanosecond values from message queues and Go programs
  • Lining up a meeting across New York, London and Seoul and needing the one number all three refer to

One moment, four widths

  1. 11761300000 is read as seconds: Friday 24 October 2025, 10:00:00 UTC. Switch the zone to Seoul and the same instant reads 19:00:00; Los Angeles shows 03:00:00.
  2. 2Add digits and the unit follows: 1761300000000 is read as milliseconds, 1761300000000000 as microseconds and 1761300000000000000 as nanoseconds. All four land on the same instant, and the Read as row says which unit was assumed.
  3. 3Watch the boundary. 99999999999, eleven digits, is taken as seconds and gives 16 November 5138, 09:46:39. One more digit, 100000000000, is taken as milliseconds: 3 March 1973, 09:46:40. Real second counts will not reach twelve digits until the year 5138, but a millisecond value from before March 1973 will be misread as seconds.
  4. 4Fractions of a second are accepted: 1761300000.5 shows up on the ISO line as 2025-10-24T10:00:00.500Z.

Every day is exactly 86,400 seconds

POSIX defines Unix time as seconds since the Epoch and counts every day as exactly 86,400 of them, which is why 86400 converts to precisely 1970-01-02 00:00:00. The leap seconds added to civil time since 1972 are simply not in the count. Subtracting two timestamps that straddle a leap second therefore gives one second fewer than actually elapsed, which matters for physics, not for invoices.

Negative values work too. -1 is 1969-12-31 23:59:59, and -14182940 is 20 July 1969, 20:17:40 UTC, the moment Apollo 11 touched down. POSIX leaves values before 1970 undefined, though, and some languages and database columns reject negative timestamps, so check the receiving side before storing historical dates this way.

Dates in a city with daylight saving

Seoul has no daylight saving, so a date typed for Seoul is read as written. New York jumps from 02:00 to 03:00 on 8 March 2026, so 02:30 that night never appears on a clock. Typed for New York, the tool reads it as 01:30:00 at UTC-05:00, which is 06:30Z. When the big tile shows a different time from the one you typed, you have hit the skipped hour.

When clocks go back, an hour happens twice. Typed for New York, 2026-11-01 01:30 came out on the UTC-04:00 side (05:30Z); typed for Berlin, 2026-10-25 02:30 came out on the UTC+01:00 side (01:30Z). Check the offset in the tile’s heading, and if you meant the other occurrence, write the offset yourself: 2026-11-01T01:30:00-05:00 is read exactly as 06:30Z.

Where the output lines go

  • The ISO 8601 (UTC) line is in RFC 3339 form, ready for JSON APIs, JavaScript’s new Date() and PostgreSQL timestamptz columns. The trailing Z marks UTC.
  • Because every value on that line is UTC with the same number of digits, sorting the strings alphabetically sorts them in time, handy when merging logs from several machines.
  • Pick the seconds or milliseconds line to match the receiver: JWT claims and most Unix tools use seconds, JavaScript and Java use milliseconds.

Easy ways to get it wrong

  • Pasting a spreadsheet date serial. In Excel, 24 October 2025 is 45954; read as Unix time it becomes 1970-01-01 12:45:54. Spreadsheet serials count days from 1900 and are a different system altogether.
  • Storing “2026-10-24 21:15” with no zone. Read for Seoul it is 12:15Z; read for New York it is 01:15Z the next day, thirteen hours apart. Store Unix time or an ISO string with its offset.
  • Writing milliseconds into a field that expects seconds. It looks fine where it was written and turns into a date tens of thousands of years away where it is read.

Checked

Frequently asked questions

When is Unix timestamp 1700000000?

It counts seconds from 1970-01-01 00:00:00 UTC, so it is 2023-11-14 22:13:20 UTC, or 07:13:20 on Wednesday 2023-11-15 in Korea. The large tile shows the chosen time zone, this device's at first; switch it to UTC or Seoul to see either at once.

I entered only a date. Why does the ISO line show the previous day?

A date alone is read as midnight in the chosen time zone. In Korea (UTC+9), 2026-01-01 is 1767193200 seconds, which is 2025-12-31 15:00 in UTC, so the ISO line shows the day before. Choose UTC as the time zone to read it as midnight UTC.

What is the year 2038 problem?

A Unix time stored as a signed 32-bit integer cannot go past 2147483647, which is 2038-01-19 03:14:07 UTC. This tool handles larger values, but a system that stores the value in 32 bits needs checking separately.