Skip to content
Back

Unix Timestamp Converter

Convert Unix timestamps to dates and dates to timestamps.

Current Unix time: — seconds

Timestamp → date

Unit

Date → timestamp

Turn Unix time into a readable date and back

Unix Timestamp Converter reads a Unix timestamp — a count of seconds or milliseconds since 00:00 UTC on 1 January 1970 — and shows the date it stands for, or turns a date and time back into a timestamp. The current Unix time in seconds ticks over at the top of the tool.

You always say whether a value is in seconds or milliseconds, so nothing is guessed behind your back. Your browser does the work using your device’s clock and time-zone setting; the numbers you type stay on the page.

How to convert a Unix timestamp to a date

  1. Type or paste the number into Unix timestamp, or click Now to fill in the current time. Spaces, commas and underscores used as digit separators are ignored.
  2. Set Unit to Seconds or Milliseconds. If the number looks like it belongs to the other unit, a hint appears with a Switch unit button.
  3. Read the results as you type, and use the copy button beside any line.
  4. To go the other way, pick a value in Date and time under Date → timestamp, then set Interpret as to your local time or UTC.

What each converted line shows

  • UTC: the full date and time in Coordinated Universal Time, written in your browser’s language.
  • Local: the same moment in the time zone your device reports, which is named in the label.
  • ISO 8601: a standard machine-readable form such as 2023-11-14T22:13:20.000Z, always in UTC.
  • Relative: a rounded description measured from now, such as “3 days ago” or “in 2 months”.
  • Seconds and Milliseconds: the value in both units. Date → timestamp gives Unix seconds, Unix milliseconds and ISO 8601 (UTC).

Where Unix timestamps turn up

  • Logs and error reports: find out when an event happened from the number recorded next to it.
  • APIs and databases: check fields like created_at or updated_at, or make a timestamp to put in a test request.
  • Expiry values: see whether a token’s or cookie’s expiry time has already passed by glancing at the Relative line.
  • Config files: turn a planned date into the number a setting expects.

Avoiding unit and time-zone mix-ups

  • For present-day dates, a 10-digit value is normally in seconds and a 13-digit one in milliseconds. If the year looks wildly wrong, try Switch unit.
  • Seconds may carry up to three decimal places, such as 1700000000.5; milliseconds must be whole numbers.
  • For a date copied from a server or log, choose UTC under Interpret as unless you know it was written in local time.
  • Negative timestamps are moments before 1970: -86400 seconds is 00:00 UTC on 31 December 1969.
  • Microsecond (16-digit) and nanosecond (19-digit) timestamps aren’t supported directly; divide them by 1,000 or 1,000,000 to get milliseconds first.

Unix Timestamp Converter: common questions

Is a Unix timestamp the same in every time zone?

Yes. One number marks one moment worldwide; only its display changes, which is why both UTC and Local lines appear. To see that moment in other cities, use the Timezone Converter.

What happens to a local time during a daylight-saving change?

When clocks go forward some local times never happen, and when they go back an hour happens twice. Interpreting such a time as local, your browser settles on one moment without flagging it — check the ISO 8601 (UTC) line, or choose UTC instead.

Why does a hint say my number may be in the other unit?

In Seconds, a value of 100,000,000,000 or more lands thousands of years ahead, so the hint shows that year. In Milliseconds, values from 100,000,000 up to that size fall between January 1970 and March 1973. The results still appear, and the unit only changes if you click Switch unit.

What range of dates can it convert?

Up to 8,640,000,000,000,000 milliseconds either side of 1970 — roughly 271,821 BC to AD 275,760, the limit of JavaScript dates. Anything further out gets an error.

Does Unix time include leap seconds?

No. Unix time treats every day as exactly 86,400 seconds, and the converter follows the same rule. To add days or months to a date instead, try the Date Calculator.