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.

Current Unix time ? -

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 ?

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.

The same moment, 2023-11-14T22:13:20Z, in each unit
UnitDigits, from September 2001 to November 2286Auto mode picks it when the number isTimestamp
Seconds10under 10 billion1700000000
Milliseconds13under 10 trillion1700000000000
Microseconds16under 10 quadrillion1700000000000000
Nanoseconds19anything bigger1700000000000000000

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.

How far GPS time runs ahead of UTC, from the IANA leap second list
From (UTC)GPS ahead by
1 July 19811 s
1 July 19822 s
1 July 19833 s
1 July 19854 s
1 January 19885 s
1 January 19906 s
1 January 19917 s
1 July 19928 s
1 July 19939 s
1 July 199410 s
1 January 199611 s
1 July 199712 s
1 January 199913 s
1 January 200614 s
1 January 200915 s
1 July 201216 s
1 July 201517 s
1 January 201718 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.

Unix timestamps at 00:00:00 UTC on 1 January, 2015 to 2025
YearSecondsMillisecondsWeekday
201514200704001420070400000Thursday
201614516064001451606400000Friday
201714832288001483228800000Sunday
201815147648001514764800000Monday
201915463008001546300800000Tuesday
202015778368001577836800000Wednesday
202116094592001609459200000Friday
202216409952001640995200000Saturday
202316725312001672531200000Sunday
202417040672001704067200000Monday
202517356896001735689600000Wednesday

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.

Unix timestamps at 00:00:00 UTC on 1 January, 2026 to 2035
YearSecondsMillisecondsWeekday
202617672256001767225600000Thursday
202717987616001798761600000Friday
202818302976001830297600000Saturday
202918619200001861920000000Monday
203018934560001893456000000Tuesday
203119249920001924992000000Wednesday
203219565280001956528000000Thursday
203319881504001988150400000Saturday
203420196864002019686400000Sunday
203520512224002051222400000Monday

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.

Seconds and milliseconds in common spans of Unix time
SpanSecondsMilliseconds
1 minute6060,000
1 hour3,6003,600,000
1 day86,40086,400,000
1 week604,800604,800,000
28-day February2,419,2002,419,200,000
29-day February2,505,6002,505,600,000
30-day month2,592,0002,592,000,000
31-day month2,678,4002,678,400,000
365-day year31,536,00031,536,000,000
366-day leap year31,622,40031,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.

Notable Unix timestamps in seconds and milliseconds
SecondsMillisecondsUTC date and timeDayWhy it matters
001970-01-01T00:00:00ZThursdayThe Unix epoch
9466848009466848000002000-01-01T00:00:00ZSaturdayY2K, 1 January 2000
100000000010000000000002001-09-09T01:46:40ZSundayOne billion seconds
123456789012345678900002009-02-13T23:31:30ZFridayThe counting sequence
150000000015000000000002017-07-14T02:40:00ZFridayOne and a half billion
160000000016000000000002020-09-13T12:26:40ZSundayOne point six billion
170000000017000000000002023-11-14T22:13:20ZTuesdayOne point seven billion
200000000020000000000002033-05-18T03:33:20ZWednesdayTwo billion seconds
214748364721474836470002038-01-19T03:14:07ZTuesdayLargest 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.

Negative Unix timestamps in seconds, with the UTC date this converter gives
TimestampUTC date and timeWhat it is
-11969-12-31T23:59:59ZOne second before the epoch
-864001969-12-31T00:00:00ZOne day before the epoch
-315360001969-01-01T00:00:00ZOne 365-day year before
-21474836481901-12-13T20:45:52ZSmallest signed 32-bit value, where 2038 wraps to
-22089888001900-01-01T00:00:00ZNTP second 0
-116444736001601-01-01T00:00:00ZWindows FILETIME 0
-621355968000001-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.

Last reviewed: November 2, 2026

How this was checked

We ran this tool on cases that have a published answer and compared the results. Last checked October 2026.

CasePublishedThis toolSource
Unix seconds at midnight UTC on 1 January 201012623040001262304000en.wikipedia.org
Largest signed 32-bit time, 03:14:07 UTC on 19 January 2038, in seconds21474836472147483647en.wikipedia.org
Seconds GPS time runs ahead of UTC from 1 January 201718 s18 sen.wikipedia.org
GPS second of the leap second at the end of 201611672640171167264017andrews.edu
NTP seconds at midnight UTC on 1 January 201736922176003692217600data.iana.org
Excel serial date for Unix 1538352000 (1 October 2018)4337443374exceljet.net
Excel serial date for 1 January 19702556925569exceljet.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.

Share card: the .NET ticks value 636942060057511391 is 23 May 2019, while the same number read as Unix nanoseconds is 9 March 1990
Plain URL
https://bentoutils.com/apps/unix-timestamp-converter/
HTML link
<a href="https://bentoutils.com/apps/unix-timestamp-converter/">Unix Timestamp Converter</a>
Markdown link
[Unix Timestamp Converter](https://bentoutils.com/apps/unix-timestamp-converter/)
Image link
<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>
Citation
Unix Timestamp Converter. BentoUtils. November 2, 2026. https://bentoutils.com/apps/unix-timestamp-converter/