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.
Timestamp to date
Date to timestamp
Your input is processed in your browser and is not uploaded.
How to use it
- Pick the time zone you want to read or enter times in.
- Paste a timestamp; the unit (seconds, milliseconds, microseconds, nanoseconds) is detected from its length.
- Or type a date and time to get the timestamp. Copy the format you need.
Example
Input: 1700000000 in America/New_York
Result: 2023-11-14 17:13:20 EST (UTC-05:00), which is 2023-11-14 22:13:20 UTC.
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 24-hour year-month-day times 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.
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.
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.