Unix Timestamp Converter
Unix timestamp converter that works both ways. Paste a timestamp to see its date, or pick a date to get the timestamp. The table under the box reads your number every way it could be meant, so a wrong unit stands out. Nothing is uploaded.
Every reading of your number
Each row reads the same number a different way. Pick the row whose date fits where the number came from, then press Use to switch the results below to that reading.
That was
This moment in other formats
Timeline ?
Paste one timestamp or date per line. Numbers are read as Unix time by their digit count (seconds to nanoseconds). Date text such as 2023-11-14T22:13:20Z works too. Date text with no time zone, like 12/31/2023, is read in your device's time zone.
Seconds or milliseconds? Count the digits
In Auto mode the converter reads your number as Unix time and picks the unit from its size. Under 10 billion is seconds, under 10 trillion is milliseconds, under 10 quadrillion is microseconds, and anything bigger is nanoseconds. From 9 September 2001 to 20 November 2286 that works out to 10, 13, 16 and 19 digits.
| Unit | Digits, from September 2001 to November 2286 | Auto mode picks it when the number is | Timestamp |
|---|---|---|---|
| Seconds | 10 | under 10 billion | 1700000000 |
| Milliseconds | 13 | under 10 trillion | 1700000000000 |
| Microseconds | 16 | under 10 quadrillion | 1700000000000000 |
| Nanoseconds | 19 | anything bigger | 1700000000000000000 |
The wrong unit gives a date that is plainly wrong, as long as you look at it. Read as seconds, 1700000000000 lands in the year 55840. Read as milliseconds, 1700000000 lands at 16:13:20 UTC on 20 January 1970. A learner on the freeCodeCamp forum expected milliseconds and was thrown when an example project "seems to count the number of seconds since January 1, 1970".
Some systems count in finer units than seconds. Wikipedia's Unix time article notes that values are sometimes stored in microseconds or nanoseconds, and that APFS on Apple devices and ext4 on Linux use nanoseconds for file timestamps.
Nanoseconds bring a trap of their own. A 19-digit number is bigger than 9007199254740991, JavaScript's largest safe integer (MDN). Stored as a plain JavaScript number, 1700000000123456789 becomes exactly 1700000000123456768. This converter reads the digits as text, so the ISO 8601 result keeps all nine: 2023-11-14T22:13:20.123456789Z.
What is an 18-digit timestamp?
Usually not Unix time. One person on the Elastic forum had "a 18 digit timestamp from a .NET error logs". Another, on MATLAB Answers, held 634019142119225390 and asked "Is it UNIX or Julian or what". The accepted answer: most likely a .NET DateTime.
Microsoft defines .NET ticks as 100-nanosecond intervals since midnight on 1 January 0001, not counting leap seconds. Windows FILETIME counts the same 100-nanosecond steps from 1 January 1601 (UTC). For dates in 2026 both are 18 digits long.
Take the Elastic number, 636942060057511391. Auto mode sees 18 digits, reads Unix nanoseconds and gives 9 March 1990. As .NET ticks it is 11:00:05 UTC on 23 May 2019, and as FILETIME it lands in the year 3619.
The MATLAB number, read as ticks, is 10:50:11 UTC on 16 February 2010, the month its owner expected. The table under the converter shows these dates side by side.
Do I need to adjust GPS time for leap seconds?
Yes. "Do I need to also adjust for leap seconds?" is how a user on MATLAB Answers put it about a receiver's timestamp. GPS time doesn't pause for leap seconds. Wikipedia's GPS article says it runs 18 seconds ahead of UTC because of the leap second added on 31 December 2016, and receivers subtract that offset to get UTC.
GPS time starts at 6 January 1980, 315,964,800 seconds after the Unix epoch, and a fixed shift by that gap is right only before July 1981. As the andrews.edu GPS converter explains, the offset "changes each time there is a leap second". This converter used to apply the fixed shift, so GPS 1167264018 came out as 00:00:18 UTC on 1 January 2017. It now gives 00:00:00, using the leap second list IANA publishes.
| From (UTC) | GPS ahead by |
|---|---|
| 1 July 1981 | 1 s |
| 1 July 1982 | 2 s |
| 1 July 1983 | 3 s |
| 1 July 1985 | 4 s |
| 1 January 1988 | 5 s |
| 1 January 1990 | 6 s |
| 1 January 1991 | 7 s |
| 1 July 1992 | 8 s |
| 1 July 1993 | 9 s |
| 1 July 1994 | 10 s |
| 1 January 1996 | 11 s |
| 1 July 1997 | 12 s |
| 1 January 1999 | 13 s |
| 1 January 2006 | 14 s |
| 1 January 2009 | 15 s |
| 1 July 2012 | 16 s |
| 1 July 2015 | 17 s |
| 1 January 2017 | 18 s |
One GPS second has no Unix number at all: the leap second itself, 23:59:60 UTC. Unix time gives it the timestamp of the second before or after it (Wikipedia). This converter shows the second after it and says so. For the most recent one that is GPS 1167264017.
The offset stays at 18 seconds unless another leap second is added. Wikipedia's leap second article reports that continuous UTC takes effect on 20 May 2027, under Resolution 5 of the CGPM in October 2026. The current IANA list is valid until 28 June 2027.
NTP time needs no such correction. It counts from 1 January 1900 (Wikipedia), and in the IANA list every NTP value sits exactly 2,208,988,800 seconds above the Unix time for the same moment, in 1972 as in 2017. NTP 3692217600 is midnight UTC on 1 January 2017.
How do I get the GPS week number?
A GPS receiver gives the date as "a week number and a seconds-into-week number" (Wikipedia's GPS article). A week is 604,800 seconds, so divide the GPS seconds by 604800. The whole part is the week and the remainder is the time of week, counted from week 0 at 00:00:00 UTC on 6 January 1980.
Midnight UTC on 1 January 2017 is GPS 1167264018: week 1930, 18 seconds in. Week 1930 itself began at GPS 1167264000, which this converter shows as 23:59:43 UTC on 31 December 2016, because GPS was then 17 seconds ahead. Midnight UTC on 2 November 2026 is GPS 1477612818, week 2443 and 86418 seconds in.
The receiver sends the week in a 10-bit field, so it goes back to zero every 1,024 weeks (19.6 years). Wikipedia dates the two rollovers to 23:59:47 UTC on 21 August 1999 and 23:59:42 UTC on 6 April 2019, and this converter gives the same times for GPS 619315200 (week 1024) and GPS 1238630400 (week 2048). A receiver sending week 395 in November 2026 means week 2443.
Unix timestamp to an Excel date
Excel stores a date as a count of days from 1900. Exceljet converts with =(B5/86400)+DATE(1970,1,1), where B5 holds the timestamp and DATE(1970,1,1) is serial 25569. Its example turns 1538352000 into 43374, which shows as 1 October 2018 once the cell is formatted as a date. The Excel serial date card above shows the same value, to five decimal places, for any date from 1900 on.
The serial is in UTC, which Exceljet describes as independent of any time zone or daylight-saving rule. For local time, add the offset as a fraction of a day: 2/24 for UTC+2.
To go the other way, pick Excel serial date under Read as and type the serial. Serials below 61 are odd. Microsoft says Excel wrongly treats 1900 as a leap year, so serial 60 is 29 February 1900, a day that never happened. The converter refuses 60 and moves serials 1 to 59 by a day, so serial 1 is 1 January 1900 as Excel shows it.
Does a Unix timestamp have a time zone?
No. Unix time counts from midnight UTC, and as eGauge's guide puts it, "there is no concept of a time zone for a Unix timestamp". A zone comes in only when the number becomes a clock time.
Here the Local card follows the Timezone menu. The date box uses your device's zone, because that is how a browser date field works.
What is the Unix timestamp for 1 January of a year?
Each value below is midnight UTC on 1 January. The millisecond value is the same number with three zeros added, the unit a JavaScript Date counts in.
| Year | Seconds | Milliseconds | Weekday |
|---|---|---|---|
| 2015 | 1420070400 | 1420070400000 | Thursday |
| 2016 | 1451606400 | 1451606400000 | Friday |
| 2017 | 1483228800 | 1483228800000 | Sunday |
| 2018 | 1514764800 | 1514764800000 | Monday |
| 2019 | 1546300800 | 1546300800000 | Tuesday |
| 2020 | 1577836800 | 1577836800000 | Wednesday |
| 2021 | 1609459200 | 1609459200000 | Friday |
| 2022 | 1640995200 | 1640995200000 | Saturday |
| 2023 | 1672531200 | 1672531200000 | Sunday |
| 2024 | 1704067200 | 1704067200000 | Monday |
| 2025 | 1735689600 | 1735689600000 | Wednesday |
Consecutive rows sit 31,536,000 seconds apart, or 31,622,400 after a leap year: 2025 starts 31,622,400 seconds after 2024. The next ten years follow the same pattern.
| Year | Seconds | Milliseconds | Weekday |
|---|---|---|---|
| 2026 | 1767225600 | 1767225600000 | Thursday |
| 2027 | 1798761600 | 1798761600000 | Friday |
| 2028 | 1830297600 | 1830297600000 | Saturday |
| 2029 | 1861920000 | 1861920000000 | Monday |
| 2030 | 1893456000 | 1893456000000 | Tuesday |
| 2031 | 1924992000 | 1924992000000 | Wednesday |
| 2032 | 1956528000 | 1956528000000 | Thursday |
| 2033 | 1988150400 | 1988150400000 | Saturday |
| 2034 | 2019686400 | 2019686400000 | Sunday |
| 2035 | 2051222400 | 2051222400000 | Monday |
The epochconverter.com timestamp list gives the same values, such as 1735689600 for 1 January 2025 and 2051222400 for 1 January 2035. For midnight in your own zone, subtract its offset: midnight on 1 January 2026 in UTC+2 is 1767218400, 7,200 seconds earlier.
How many seconds are in a day, week or year?
Unix time skips leap seconds, so Wikipedia's Unix time article says every day in it is exactly 86,400 seconds. Every longer span is then a fixed count, measured here between two dates in the converter.
| Span | Seconds | Milliseconds |
|---|---|---|
| 1 minute | 60 | 60,000 |
| 1 hour | 3,600 | 3,600,000 |
| 1 day | 86,400 | 86,400,000 |
| 1 week | 604,800 | 604,800,000 |
| 28-day February | 2,419,200 | 2,419,200,000 |
| 29-day February | 2,505,600 | 2,505,600,000 |
| 30-day month | 2,592,000 | 2,592,000,000 |
| 31-day month | 2,678,400 | 2,678,400,000 |
| 365-day year | 31,536,000 | 31,536,000,000 |
| 366-day leap year | 31,622,400 | 31,622,400,000 |
Leap seconds don't change these. The same article notes that a UTC day with a leap second is not exactly 86,400 seconds long, yet Unix time gives 31 December 2016, which had one, the usual 86,400.
Which dates do the round timestamps fall on?
These are the values people search for most, with the UTC date each one lands on and the same moment in milliseconds. Paste one into the converter to see its date in the other formats.
| Seconds | Milliseconds | UTC date and time | Day | Why it matters |
|---|---|---|---|---|
| 0 | 0 | 1970-01-01T00:00:00Z | Thursday | The Unix epoch |
| 946684800 | 946684800000 | 2000-01-01T00:00:00Z | Saturday | Y2K, 1 January 2000 |
| 1000000000 | 1000000000000 | 2001-09-09T01:46:40Z | Sunday | One billion seconds |
| 1234567890 | 1234567890000 | 2009-02-13T23:31:30Z | Friday | The counting sequence |
| 1500000000 | 1500000000000 | 2017-07-14T02:40:00Z | Friday | One and a half billion |
| 1600000000 | 1600000000000 | 2020-09-13T12:26:40Z | Sunday | One point six billion |
| 1700000000 | 1700000000000 | 2023-11-14T22:13:20Z | Tuesday | One point seven billion |
| 2000000000 | 2000000000000 | 2033-05-18T03:33:20Z | Wednesday | Two billion seconds |
| 2147483647 | 2147483647000 | 2038-01-19T03:14:07Z | Tuesday | Largest signed 32-bit value |
The last row is the largest signed 32-bit number, 2,147,483,647. Wikipedia's Year 2038 entry puts it at 03:14:07 UTC on 19 January 2038. One second later, a 32-bit counter wraps to 20:45:52 UTC on 13 December 1901. The same entry says a signed 64-bit counter pushes the wraparound about 292 billion years away.
NTP has an earlier deadline. Wikipedia's NTP article says its 32-bit seconds field first rolls over on 7 February 2036.
What dates do negative timestamps give?
A negative Unix timestamp is a time before 1970, on systems that support one. Wikipedia's Unix time article gives -31536000 for midnight UTC on 1 January 1969, and the other clocks on this page all start before 1970, so their epochs are negative too.
| Timestamp | UTC date and time | What it is |
|---|---|---|
| -1 | 1969-12-31T23:59:59Z | One second before the epoch |
| -86400 | 1969-12-31T00:00:00Z | One day before the epoch |
| -31536000 | 1969-01-01T00:00:00Z | One 365-day year before |
| -2147483648 | 1901-12-13T20:45:52Z | Smallest signed 32-bit value, where 2038 wraps to |
| -2208988800 | 1900-01-01T00:00:00Z | NTP second 0 |
| -11644473600 | 1601-01-01T00:00:00Z | Windows FILETIME 0 |
| -62135596800 | 0001-01-01T00:00:00Z | .NET ticks 0 |
Type a negative number with its minus sign and the converter reads it like any other. A signed 32-bit counter can't go below -2147483648, so it has no number for any time before 20:45:52 UTC on 13 December 1901.
Numbers too big for a date, and batch mode
A JavaScript Date holds 8,640,000,000,000,000 milliseconds either side of 1970, from 271,821 BC to AD 275,760 (MDN). A reading outside that range shows as "not a date" in the table. Typing such a number keeps the last good result on screen with a message, so nothing changes silently.
Batch mode takes one value per line, either a number (read as Unix time by its digits) or date text such as 2023-11-14. Lines it can't read are marked. Copy as CSV puts quotes around any input that contains a comma, so "Nov 14, 2023" stays in one column.
How this was checked
We ran this tool on cases that have a published answer and compared the results. Last checked October 2026.
| Case | Published | This tool | Source |
|---|---|---|---|
| Unix seconds at midnight UTC on 1 January 2010 | 1262304000 | 1262304000 | en.wikipedia.org |
| Largest signed 32-bit time, 03:14:07 UTC on 19 January 2038, in seconds | 2147483647 | 2147483647 | en.wikipedia.org |
| Seconds GPS time runs ahead of UTC from 1 January 2017 | 18 s | 18 s | en.wikipedia.org |
| GPS second of the leap second at the end of 2016 | 1167264017 | 1167264017 | andrews.edu |
| NTP seconds at midnight UTC on 1 January 2017 | 3692217600 | 3692217600 | data.iana.org |
| Excel serial date for Unix 1538352000 (1 October 2018) | 43374 | 43374 | exceljet.net |
| Excel serial date for 1 January 1970 | 25569 | 25569 | exceljet.net |
Corrections
- : GPS times now apply the leap seconds. GPS 1167264018 showed as 00:00:18 UTC on 1 January 2017 and is 00:00:00; every GPS date after July 1981 showed up to 18 seconds later than the true UTC time
- : Unix seconds are now rounded down like a clock. 1700000000999 ms showed as 1700000001 s and is 1700000000 s
How we research and check our tools. Spotted a mistake? Use the Report a bug button on this page.
Link to this tool
Sharing or citing this calculator? Copy a link in the format you need. You're free to quote and cite anything on this page.

https://bentoutils.com/apps/unix-timestamp-converter/<a href="https://bentoutils.com/apps/unix-timestamp-converter/">Unix Timestamp Converter</a>[Unix Timestamp Converter](https://bentoutils.com/apps/unix-timestamp-converter/)<a href="https://bentoutils.com/apps/unix-timestamp-converter/"><img src="https://bentoutils.com/public/og/unix-timestamp-converter-v2.png" alt="Unix Timestamp Converter" width="600" height="315"></a>Unix Timestamp Converter. BentoUtils. November 2, 2026. https://bentoutils.com/apps/unix-timestamp-converter/