Unix Time Converter

Convert Unix timestamps (s/ms/us/ns) and ISO-8601 dates across time zones.

Current Unix Epoch (Seconds)
1700000000
Examples:
Detected Input
SECONDS
Day of Year (UTC)
318
Leap Year
No
Unix Seconds (s)
1700000000
Unix Milliseconds (ms)
1700000000000
Unix Microseconds (µs)
1700000000000000
ISO-8601 (UTC)
2023-11-14T22:13:20.000Z
RFC 2822 (GMT)
Tue, 14 Nov 2023 22:13:20 GMT
Your Local Time
Tuesday, November 14, 2023 at 10:13:20 PM UTC
Target Time Zone (UTC)
Tuesday, November 14, 2023 at 10:13:20 PM UTC
0.0/ 5
0 ratings
Rate this tool
Click stars to rate

Comments

U

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:

PrecisionTypical Digits (2026)Common Sources
Seconds (s)10 digits (1795435200)POSIX time(), JWT iat/exp, Python int(time.time()), SQL UNIX_TIMESTAMP()
Milliseconds (ms)13 digits (1795435200000)JavaScript Date.now(), Java System.currentTimeMillis(), JSON logs
Microseconds (µs)16 digits (1795435200000000)PostgreSQL, SQLite high-res logs, Chrome DevTools trace events
Nanoseconds (ns)19 digits (1795435200000000000)Go time.Now().UnixNano(), Kubernetes, Prometheus, Linux clock_gettime

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 exp or iat claim 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_York or Asia/Tokyo business 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 Date and Intl.DateTimeFormat APIs 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 JavaScript Date.now() returns milliseconds. Passing Date.now() directly into a JWT expiration claim sets the expiration thousands of years in the future. Conversely, passing a 10-digit JWT exp directly into new Date(exp) in JavaScript without multiplying by 1000 yields a date in January 1970!
  • Negative Timestamps Before 1970: Dates prior to 1970-01-01T00:00:00Z are represented as negative Unix integers (for example, the Apollo 11 moon landing on 1969-07-20T20:17:40Z is -14182940). Our parser preserves signed negative numbers across all supported precisions.
  • Timezone-Naive Date Strings: Strings like 2026-11-23 12:00:00 without an explicit Z or +HH:MM offset are interpreted in your browser's local time zone per ECMAScript rules. Always append Z when 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,400 seconds (3,600 seconds per hour). That guarantees simple arithmetic (timestamp + 86400 is 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.

Frequently Asked Questions (FAQ)