The Unix Timestamp Converter turns epoch time into readable dates and dates back into epoch time, and it detects automatically whether a number is in seconds, milliseconds, microseconds, or nanoseconds. It is for developers reading logs, database rows, JWT exp claims, and API responses, and for anyone who needs the current Unix time.
Enter a timestamp in seconds, ms, µs or ns.
ISO 8601, RFC 2822, or plain dates. Dates without a timezone are read as your local time.
Input
1516239022 (auto-detect)
Output
Seconds → 2018-01-18T01:30:22.000Z
Input
1794787200000 (auto-detect)
Output
Milliseconds → 2026-11-16T00:00:00.000Z
Input
1794787200000000 (auto-detect)
Output
Microseconds → 2026-11-16T00:00:00.000Z
Input
2026-11-16T09:30:00Z
Output
1794821400 seconds · 1794821400000 milliseconds
Unix time counts the seconds since the Unix epoch, 00:00:00 UTC on 1 January 1970, ignoring leap seconds. The same instant has the same timestamp everywhere in the world, which is why servers and databases store it, and why a timestamp has no time zone of its own. The time zone only appears when the number is displayed: ISO 8601 (UTC) and UTC show it as Coordinated Universal Time, and Your local time uses the time zone set on your device, including daylight saving time.
Different systems use different precisions, and mixing them up is the most common timestamp bug. Unix shells, PHP, Python's time.time(), and JWT claims use seconds; JavaScript's Date.now() and Java's System.currentTimeMillis() use milliseconds; PostgreSQL and many tracing tools use microseconds; Go and some metrics systems use nanoseconds. Auto-detect decides by the number of digits before any decimal point: up to 11 digits is seconds, 12 to 14 is milliseconds, 15 to 17 is microseconds, and 18 or more is nanoseconds. Any date between the years 1973 and 5138 fits those ranges, so the guess is right for real-world data. Negative numbers are accepted for dates before 1970.
The four output formats each have a use. ISO 8601, such as 2018-01-18T01:30:22.000Z, sorts correctly as text and is what JSON APIs should send. RFC 2822 is the format of email Date headers and HTTP-style dates. Your local time is for reading, and Relative tells you at a glance whether a token or cache entry has already expired. In the reverse direction, the date box follows JavaScript's date parsing rules: a date and time without a Z or offset, such as 2026-11-16T09:30, is read in your local time zone, while a date on its own, such as 2026-11-16, is read as midnight UTC. Add Z or an offset like +05:30 whenever you need an exact value.
Signed 32-bit systems store Unix time in a number that overflows at 2147483647, which is 03:14:07 UTC on 19 January 2038, the "Year 2038 problem". Modern 64-bit systems are not affected, but older embedded devices and some database column types are. To read a token's exp claim first, decode it with the JWT decoder; to build a schedule that runs at a given time each day, use the cron expression generator.
More Developer Tools