Unix Timestamp Converter
Published Updated
Convert Unix timestamps to dates and dates to Unix timestamps, in any time zone — free and processed entirely in your browser.
About the Unix Timestamp Converter
The Unix timestamp converter turns an epoch number into a date you can read, and a date back into an epoch number. A Unix timestamp counts the time that has passed since 1 January 1970 at 00:00:00 UTC, known as the Unix epoch. Because it is a single number with no time zone attached, it is the usual way to store and compare moments in databases, log files, APIs and programming languages. It is also hard to read at a glance, which is why a converter helps when you are reading a log line, checking when a token expires or debugging a scheduled job.
Paste a number and the tool works out whether it is in seconds, milliseconds, microseconds or nanoseconds by counting its digits. It then shows the moment in UTC, in your own time zone and in any other time zone you choose. You also get ISO 8601 and RFC 2822 text, a relative description such as 3 days ago, and the same moment in all four units, each with a copy button. Negative values work, so dates before 1970 are no problem, and a note appears for times past the year 2038 limit of signed 32-bit systems. Going the other way, type a date such as 2023-11-14 22:13:20 and read the timestamp in every unit.
Time zones come from the IANA database built into your browser, so daylight saving changes follow the real rules, including zones that shift by 30 minutes. If you only need to change between hours, days and weeks, try our Time Converter instead. To read the exp and iat claims in a token, our JWT Decoder shows them as numbers, and you can paste those numbers here to see the dates. Everything is calculated in your browser; this page does not upload what you enter.
Where seconds stop and milliseconds start
Auto-detect goes by the number of digits before any decimal point. Results from the tool in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app), identical in all three:
| Typed | Read as | ISO 8601 (UTC) shown |
|---|---|---|
| 1700000000 (10 digits) | seconds | 2023-11-14T22:13:20Z |
| 99999999999 (11 digits) | seconds | 5138-11-16T09:46:39Z |
| 100000000000 (12 digits) | milliseconds | 1973-03-03T09:46:40.000Z |
| 1700000000000 (13 digits) | milliseconds | 2023-11-14T22:13:20.000Z |
| 1700000000000000 (16 digits) | microseconds | 2023-11-14T22:13:20.000000Z |
| 1700000000000000000 (19 digits) | nanoseconds | 2023-11-14T22:13:20.000000000Z |
| 86400000, meant as milliseconds (8 digits) | seconds | 1972-09-27T00:00:00Z; with Unit set to Milliseconds, 1970-01-02T00:00:00.000Z |
| 1700000000,5 | seconds, 11 digits: the comma is dropped as a separator | 2508-09-16T06:13:25Z |
So a millisecond value from before 3 March 1973 is read as seconds, and a seconds value from 16 November 5138 on as milliseconds; the Unit menu overrides the guess. Commas, spaces and underscores are dropped as thousands separators, so a decimal comma changes the number. 1700000000.123456789 keeps all nine decimals: 2023-11-14T22:13:20.123456789Z.
Negative values, 2038 and the ends of the range
| Seconds | ISO 8601 (UTC) | Note under the result |
|---|---|---|
| -1 | 1969-12-31T23:59:59Z | none |
| -2147483648 | 1901-12-13T20:45:52Z | none: the earliest signed 32-bit second |
| -2147483649 | 1901-12-13T20:45:51Z | before the signed 32-bit range |
| 2147483647 | 2038-01-19T03:14:07Z | none: the last signed 32-bit second |
| 2147483648 | 2038-01-19T03:14:08Z | after 2038 |
| 4294967296 | 2106-02-07T06:28:16Z | after 2038, and past the unsigned 32-bit limit |
| -62135596801 | 0000-12-31T23:59:59Z, shown as December 31, 1 BC | before the signed 32-bit range |
| 8640000000000, Unit set to Seconds | +275760-09-13T00:00:00Z | after 2038, and past the unsigned 32-bit limit |
| 8640000000001, Unit set to Seconds | none | That value is outside the range a date can represent |
| -8640000000000, Unit set to Seconds | -271821-04-20T00:00:00Z, shown as April 20, 271822 BC | before the signed 32-bit range |
The outer limits are those of a JavaScript date: ECMAScript gives time values a range of "exactly -100,000,000 days to 100,000,000 days" around 1 January 1970. Typed without a unit, 8640000000000 has 13 digits and is read as milliseconds (2243-10-17), so set the unit when you test the limits.
Skipped and repeated local times, zone by zone
A date typed without an offset is read in the zone picked above it. These are the tool's results, the same in Chrome 157, Firefox 155 and the WebKit build:
| Zone | Typed | What the tool did | Result (UTC) |
|---|---|---|---|
| America/New_York | 2026-03-08 02:30 | skipped time; uses 03:30 | 2026-03-08T07:30:00Z |
| America/New_York | 2026-11-01 01:30 | happens twice; uses the first, shows the second | 05:30:00Z, second 06:30:00Z |
| Europe/London | 2026-03-29 01:30 | skipped time; uses 02:30 | 2026-03-29T01:30:00Z |
| Europe/London | 2026-10-25 01:30 | happens twice | 00:30:00Z, second 01:30:00Z |
| Australia/Lord_Howe | 2026-10-04 02:15 | skipped, a 30-minute gap; uses 02:45 | 2026-10-03T15:45:00Z |
| Australia/Lord_Howe | 2026-04-05 01:45 | happens twice, 30 minutes apart | 14:45:00Z, second 15:15:00Z (4 April) |
| America/Sao_Paulo | 2018-11-04 (no time) | midnight skipped; uses 01:00 | 2018-11-04T03:00:00Z |
| Pacific/Apia | 2011-12-30 12:00 | the whole day skipped; uses 31 December 12:00 | 2011-12-30T22:00:00Z |
| Europe/Moscow | 2014-10-26 01:30 | happens twice (UTC+4 became UTC+3) | 21:30:00Z, second 22:30:00Z (25 October) |
| Asia/Kolkata | 2026-03-08 02:30 | one match | 2026-03-07T21:00:00Z |
The zone names beside the offsets come from the browser and can differ: London in January showed GMT in Chrome 157 and Firefox 155 but GMT+0 in the WebKit build. The All time zones list held 419 zones in Chrome 157 and 445 in Firefox 155 and the WebKit build.
Leap seconds and dates typed without a time
The tool reads dates with its own parser, so it answers the same in every browser; the browser's own Date.parse does not. With the browser set to America/New_York:
| Typed | This tool | Date.parse in Chrome 157 | Firefox 155 | WebKit build |
|---|---|---|---|---|
| 2016-12-31T23:59:60Z | That time is not valid | invalid (NaN) | invalid (NaN) | 2017-01-01T00:00:00Z |
| 2023-02-29 | That calendar date does not exist | 2023-03-01T00:00:00Z | 2023-03-01T00:00:00Z | invalid (NaN) |
| 2023-11-14T24:00:00Z | That time is not valid | 2023-11-15T00:00:00Z | 2023-11-15T00:00:00Z | 2023-11-15T00:00:00Z |
| 2023-11-14 | 2023-11-14T05:00:00Z (local midnight) | 2023-11-14T00:00:00Z | 2023-11-14T00:00:00Z | 2023-11-14T00:00:00Z |
A leap second is written 23:59:60 at the end of a UTC day (NIST). Unix time and JavaScript skip it: ECMAScript counts every day as "exactly 86,400 seconds", so 2016-12-31T23:59:59Z is 1483228799 and 2017-01-01T00:00:00Z is 1483228800, one apart. For a date with no time, ECMAScript reads "date-only forms" as UTC; this tool reads them, like any date without an offset, in the zone you picked.
How to Convert a Unix Timestamp
Step 1
Paste your timestamp
Type or paste a number in seconds, milliseconds, microseconds or nanoseconds. The unit is detected from its length, or you can set it yourself.
Step 2
Choose a time zone
Pick any IANA time zone. You see the moment in UTC, in your own local time and in the zone you chose.
Step 3
Copy what you need
Copy the date, the ISO 8601 or RFC 2822 text, or the same moment in all four units. Or type a date to get its timestamp.
Frequently Asked Questions
Is my data sent anywhere?
It is converted in your browser; this page does not upload it. The tool's code makes no network request, does not use browser storage and does not put what you type in the page address.
How does the tool tell seconds from milliseconds?
By counting digits. Up to 11 digits is read as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and 18 or more as nanoseconds. Today's timestamps have 10, 13, 16 and 19 digits. If you work with dates far from today, choose the unit by hand.
Can I convert a negative Unix timestamp?
Yes. A negative value is a moment before 1 January 1970 00:00:00 UTC. For example, -86400 is 31 December 1969.
What is the year 2038 problem?
Some older systems store Unix time in a signed 32-bit number, which tops out at 2147483647, or 19 January 2038 03:14:07 UTC. One second later the value wraps around to December 1901. 64-bit systems, JavaScript and this tool are not affected, and the tool warns you when a time is past the 32-bit limit.
What happens with times that daylight saving skips or repeats?
When clocks spring forward, a local time such as 02:30 never happens, so the tool moves it forward by the length of the gap and tells you. When clocks fall back, a time such as 01:30 happens twice, so the tool uses the first one and shows you the second.
Which date formats can I enter?
ISO 8601, such as 2023-11-14 22:13:20 or 2023-11-14T22:13:20+02:00, and RFC 2822, such as Tue, 14 Nov 2023 22:13:20 +0000. Without a UTC offset, the time is read in the time zone you picked.
Why does my millisecond timestamp show a date in 1972?
Because it has 11 digits or fewer, so auto-detect reads it as seconds. 86400000 (one day in milliseconds) comes out as 1972-09-27T00:00:00Z; with Unit set to Milliseconds it is 1970-01-02T00:00:00.000Z. Millisecond values before 3 March 1973 all need the unit set by hand.
Does the converter handle leap seconds?
It does not accept them: 2016-12-31T23:59:60Z gives That time is not valid. Hours run 0-23, minutes and seconds 0-59. Unix time has no leap seconds, so 23:59:59 and the following 00:00:00 are one second apart. Browsers disagree on the same text: Date.parse returned an invalid date in Chrome 157 and Firefox 155 and the next midnight in the WebKit build.
Why does a date without a time give a different timestamp than JavaScript?
The tool reads 2023-11-14 as midnight in the zone you picked, which for America/New_York is 1699938000. JavaScript's Date.parse reads a date-only string as UTC midnight, 1699920000, five hours earlier. Add Z or an offset, such as 2023-11-14T00:00:00Z, to get UTC in the tool.
What is the largest timestamp it accepts?
8640000000000 seconds, which is +275760-09-13T00:00:00Z, the last moment a JavaScript date can hold; 8640000000001 gives That value is outside the range a date can represent. The earliest is -8640000000000, April 20, 271822 BC. Set Unit to Seconds first, because 13 digits are otherwise read as milliseconds.