One Click Answers

OCADeveloper & Design

Share tool
FacebookPinterestEmail

Unix Timestamp Converter

Convert a Unix timestamp to a date in any time zone, or a date back to a timestamp, with daylight saving handled explicitly.

About this tool & how to use it

What the Unix Timestamp Converter does

Converts a Unix timestamp (a number of seconds since 1 January 1970) into a readable date and time, or a date into a timestamp, in the time zone you choose.

How to use the Unix Timestamp Converter

  1. Pick the time zone you want to read or enter times in.
  2. Paste a timestamp; the unit (seconds, milliseconds, microseconds, nanoseconds) is detected from its length.
  3. Or type a date and time to get the timestamp. Copy the format you need.

Timestamp to date

-enter a timestamp
Detected as-
ISO 8601 (this zone, technical format)-
UTC-
ISO 8601 (UTC, technical format)-
Unix seconds-
Unix milliseconds-
Relative-

Date to timestamp

-Unix seconds
Unix milliseconds-
That moment in UTC-

Related tools

Try another answer

An analog alarm clock on a wooden floor
Photo: Ales Krivec (CC0, via Wikimedia Commons)

How it works

A Unix timestamp counts the time since 1970-01-01 00:00:00 UTC, ignoring leap seconds. It does not contain a time zone; a zone only changes how the moment is written as a date.

The unit is guessed from the digit count: up to 11 digits is seconds, 12 to 14 is milliseconds, 15 to 17 is microseconds and 18 or more is nanoseconds. Today’s timestamps have 10, 13, 16 and 19 digits. You can override the guess.

Time zones come from the IANA time zone database built into your browser, so daylight saving rules are applied for the date in question.

When you type a date, the zone above is used to read it. If daylight saving makes that clock time happen twice, the earlier moment is used and the later one is shown. If the clock time never happens (clocks jump forward), the page says so and shows the moment it falls on.

Assumptions

  • Timestamps are whole numbers of seconds, milliseconds, microseconds or nanoseconds since 1970-01-01 00:00:00 UTC.
  • Dates are read as year-month-day with the time in 12-hour form (5:13:20 PM) in the zone you choose.
  • Supported years are 1000 to 9999. Sub-millisecond digits are dropped.
  • Relative time (such as "2 days ago") is measured from the moment you open or change the page.

Unix Timestamp Converter example

Input: 1700000000 in America/New_York

Result: 2023-11-14 5:13:20 PM EST (UTC-05:00), which is 2023-11-14 10:13:20 PM UTC.

Unix Timestamp Converter questions

Why does my timestamp show the wrong date?

Usually the unit is wrong. A 13-digit number is milliseconds; read as seconds it would be thousands of years away. Use the Unit menu to force it.

How do I get the current Unix timestamp?

In JavaScript, Math.floor(Date.now() / 1000) gives seconds and Date.now() gives milliseconds. In Python, int(time.time()) gives seconds. On Linux and macOS, the command date +%s prints it.

What is the Year 2038 problem?

Systems that store seconds in a signed 32-bit number run out at 2038-01-19 03:14:07 UTC (2147483647). Newer systems use 64-bit values, which last far beyond any practical date.

Do timestamps have a time zone?

No. They are an absolute moment. The zone only affects how that moment is displayed as a calendar date and clock time.

Last reviewed 2026-10-19. Report an incorrect result

Got another question?

Free, no account. Answers show how they were worked out.