What Is a Unix Timestamp (Epoch Time)?
A Unix timestamp (also called Epoch time or POSIX time) counts the number of seconds elapsed since 00:00:00 UTC on January 1, 1970, not counting leap seconds. Because it is a single timezone-independent integer, databases, APIs, JWT tokens, log pipelines, and distributed systems store dates as Unix timestamps rather than localized strings.
Our Unix Time Converter lets you inspect a live ticking Unix clock, automatically detect seconds, milliseconds, microseconds, or nanoseconds, and convert seamlessly between Epoch numbers and human-readable ISO-8601, RFC 2822, local time, and major IANA time zones.
Seconds vs. Milliseconds, Microseconds, and Nanoseconds
Different programming languages and databases emit Unix timestamps at different resolutions. Pasting the wrong resolution is one of the most common debugging mistakes in backend and frontend engineering:
In Auto-Detect mode, the parser inspects the integer digit length at the input boundary and normalizes seconds, milliseconds, microseconds, and nanoseconds cleanly into an exact millisecond epoch. If you are converting historical dates near 1970 (fewer digits), use the Input Precision dropdown to lock the exact unit explicitly.
Bidirectional Conversion: Date Strings Back to Epoch
You do not need a separate form to convert human-readable dates back into Unix numbers. Paste any standard date string directly into the same input box:
- ISO-8601 UTC:
2026-11-23T12:00:00Z - ISO-8601 with Offset:
2026-11-23T20:00:00+08:00 - SQL / Log Format:
2026-11-23 12:00:00 - RFC 2822:
Mon, 23 Nov 2026 12:00:00 GMT
The tool immediately outputs Unix seconds, milliseconds, microseconds, UTC ISO-8601, RFC 2822, your browser's local time, and your chosen target IANA time zone (such as America/New_York, Europe/London, Asia/Shanghai, or Asia/Tokyo), plus the Day of Year and Leap Year status.
Why 2038 Matters (The Year 2038 Problem)
Legacy 32-bit signed integers can only store Unix seconds up to 2,147,483,647, which corresponds to January 19, 2038 at 03:14:07 UTC. After that second, a 32-bit signed integer overflows to a negative number representing December 13, 1901. Modern 64-bit systems and JavaScript Date objects safely handle timestamps well beyond 2038 (JavaScript supports plus or minus 100,000,000 days around the 1970 epoch, or 8.64e15 milliseconds), and our converter validates that range at the input boundary so out-of-range numbers fail cleanly instead of rendering Invalid Date.
Practical Developer Tips
- Debugging JWT Tokens: Copy the
exporiatclaim from a decoded JSON Web Token and paste it directly—10-digit seconds are detected automatically so you can verify expiration in seconds. - Comparing Server Logs Across Regions: Switch the Target Time Zone selector to compare UTC container logs against
America/New_YorkorAsia/Tokyobusiness hours without mental math. - Pause the Live Clock: Click Pause on the top live Unix banner when copying a reference timestamp for integration tests or API payloads.
- 100% Local Execution: Every conversion runs in your browser via native
DateandIntl.DateTimeFormatAPIs with zero network calls.
Common Epoch Time Pitfalls in Production
Even experienced engineers occasionally run into subtle timestamp bugs when integrating third-party APIs, databases, and client applications:
- Mixing Seconds and Milliseconds in JWTs and APIs: OAuth and JWT specifications (
exp,iat,nbf) strictly mandate seconds, while JavaScriptDate.now()returns milliseconds. PassingDate.now()directly into a JWT expiration claim sets the expiration thousands of years in the future. Conversely, passing a 10-digit JWTexpdirectly intonew Date(exp)in JavaScript without multiplying by1000yields a date in January 1970! - Negative Timestamps Before 1970: Dates prior to
1970-01-01T00:00:00Zare represented as negative Unix integers (for example, the Apollo 11 moon landing on1969-07-20T20:17:40Zis-14182940). Our parser preserves signed negative numbers across all supported precisions. - Timezone-Naive Date Strings: Strings like
2026-11-23 12:00:00without an explicitZor+HH:MMoffset are interpreted in your browser's local time zone per ECMAScript rules. Always appendZwhen you intend UTC, or inspect the Target Time Zone comparison row to verify the offset. - Leap Seconds: POSIX/Unix time ignores leap seconds by repeating or smearing them so every day is treated as exactly
86,400seconds (3,600seconds per hour). That guarantees simple arithmetic (timestamp + 86400is always the same UTC clock time the next day).
You can also bookmark a specific timestamp or copy any ISO-8601, RFC 2822, or microsecond output directly into incident postmortems, Prometheus queries, or database migrations with one click. Simply paste any value, verify the detected unit, and copy the exact format your workflow expects.