Unix Timestamp to ISO 8601 Converter

Auto-detects s / ms / µs · Strict RFC 3339 UTC + Local · Year-2038 check

Presets:
Unix Epoch (s / ms / µs / ns) 0 chars
ISO-8601 UTC
0 chars

      
Ready
Ctrl+Enter Convert · 100% Local
Advertisement
Reserved fixed-height slot (CLS = 0.00) 728×90 320×100 300×50

Converting Unix Epoch Timestamps to ISO 8601 Without Precision Bugs

Unix timestamps count elapsed non-leap seconds since 1970-01-01T00:00:00Z, yet production APIs frequently mix 10-digit seconds (POSIX, JWT exp/iat, Stripe) with 13-digit milliseconds (JavaScript Date.now(), Java, Kafka) and 16-digit microseconds (PostgreSQL, Parquet). Passing a millisecond integer into a seconds parser shifts dates tens of thousands of years into the future.

RFC 3339 narrows ISO 8601 for wire formats by requiring the four-digit year, explicit date-time separator (T), and either a trailing Z for UTC or a signed HH:MM offset. Because JavaScript numbers use IEEE 754 double precision (53-bit mantissa), nanosecond timestamps above 9,007,199,254,740,991 require BigInt division before constructing Date objects.

  • StandardsPOSIX Epoch (1970-01-01T00:00:00Z) mapped to ISO 8601 / RFC 3339 UTC (Z) and offset strings.
  • Unit Auto-DetectionDistinguishes 10-digit seconds, 13-digit milliseconds, 16-digit microseconds, and 19-digit nanoseconds.
  • Overflow BoundaryFlags signed 32-bit INT_MAX (2,147,483,647 → 2038-01-19T03:14:07Z) and negative pre-1970 epochs.
How do I tell whether a Unix timestamp is in seconds or milliseconds?

Current Unix timestamps in seconds are 10 digits long (around 1.7 × 10^9), whereas JavaScript/JVM millisecond timestamps are 13 digits long (around 1.7 × 10^12). This tool inspects digit magnitude automatically and shows both interpretations.

What is the difference between ISO 8601 and RFC 3339?

RFC 3339 is a strict internet profile of ISO 8601 used by JSON APIs, OpenAPI, and Kubernetes. It mandates full calendar dates with hyphens (YYYY-MM-DD) and an explicit timezone designator such as Z or +00:00.

Does Unix time include leap seconds?

No. POSIX time treats every day as exactly 86,400 seconds and smears or replays the final second during UTC leap-second adjustments.