Unix Timestamp Converter

Convert Unix timestamps (epoch time) to human-readable dates and back, instantly in your browser. Distinguish seconds from milliseconds, set an expiry timestamp for a token or cache entry, or compare log timestamps across time zones with no data leaving your device.

Usage examples

Checking a timestamp from an API response

Quickly see what actual date and time a Unix timestamp in a server log or API response corresponds to.

Generating a timestamp for testing

Use the 'Use current time' button to instantly get the timestamp for right now, without typing a date.

Not mixing up seconds and milliseconds

Since some systems use seconds and others milliseconds, switch the unit to compare how the same value is interpreted either way.

Setting an expiry timestamp for a cache or token

Start from the current time, then do the math for how far in the future an expiry should be (like now plus 3600 seconds for a 1-hour token), and verify the resulting timestamp converts back to the date you expect.

Comparing two log timestamps across time zones

Convert two Unix timestamps from logs collected in different regions to UTC, so you can tell which event actually happened first regardless of each server's local clock.

Quick reference

Notable timestamps

SecondsMillisecondsUTC
-2147483648-21474836480001901-12-13 20:45:52 UTC
-1-10001969-12-31 23:59:59 UTC
001970-01-01 00:00:00 UTC
86400864000001970-01-02 00:00:00 UTC
100000000010000000000002001-09-09 01:46:40 UTC
123456789012345678900002009-02-13 23:31:30 UTC
150000000015000000000002017-07-14 02:40:00 UTC
170000000017000000000002023-11-14 22:13:20 UTC
200000000020000000000002033-05-18 03:33:20 UTC
214748364721474836470002038-01-19 03:14:07 UTC
429496729542949672950002106-02-07 06:28:15 UTC

January 1, 00:00:00 UTC

SecondsMillisecondsUTC
3155328003155328000001980-01-01 00:00:00 UTC
6311520006311520000001990-01-01 00:00:00 UTC
9466848009466848000002000-01-01 00:00:00 UTC
126230400012623040000002010-01-01 00:00:00 UTC
157783680015778368000002020-01-01 00:00:00 UTC
160945920016094592000002021-01-01 00:00:00 UTC
164099520016409952000002022-01-01 00:00:00 UTC
167253120016725312000002023-01-01 00:00:00 UTC
170406720017040672000002024-01-01 00:00:00 UTC
173568960017356896000002025-01-01 00:00:00 UTC
176722560017672256000002026-01-01 00:00:00 UTC
179876160017987616000002027-01-01 00:00:00 UTC
183029760018302976000002028-01-01 00:00:00 UTC
186192000018619200000002029-01-01 00:00:00 UTC
189345600018934560000002030-01-01 00:00:00 UTC
214591680021459168000002038-01-01 00:00:00 UTC

Frequently asked questions

Is what I enter sent to a server?

No. All conversion happens entirely in your browser, and what you enter is never sent to a server.

Does it support negative timestamps?

Yes. Negative timestamps, which represent dates before January 1, 1970, are calculated correctly too.

How do I know if a value is in seconds or milliseconds?

It isn't auto-detected — choose the unit yourself using the tabs above. As a rule of thumb, a 10-digit number is usually seconds and a 13-digit number is usually milliseconds.

How is my local time zone determined?

It's shown using whatever time zone your current browser/device is set to, with no extra configuration needed.

Why is Unix time measured from January 1, 1970?

That date, known as the Unix epoch, was chosen somewhat arbitrarily by early Unix developers in the early 1970s as a convenient, recent reference point. It has since become the universal standard reference point across nearly all computing systems.

Will this tool still work correctly after the year 2038?

Yes. The so-called 'Year 2038 problem' only affects systems that store Unix time in a signed 32-bit integer, which overflows in January 2038. This tool performs its calculations using JavaScript's native number type, which comfortably handles timestamps far beyond that date.

Does this tool account for leap seconds?

No, and neither does the Unix timestamp standard itself. Unix time assumes every day has exactly 86,400 seconds and simply ignores the leap seconds occasionally added to UTC, which is why it's sometimes described as 'leap second smeared' rather than a perfectly accurate count of elapsed seconds.