>_ MoriDev dev.moritools.com
ISO 8601 · Epoch 100% Client-Side · Zero Upload

Unix Timestamp & Epoch Converter

Auto-detect seconds, milliseconds, microseconds, or ISO 8601 strings with a live Unix clock, leap-year validation, and multi-timezone readouts.

Ready (Offline)
Quick Summary

Paste any numeric Unix timestamp (10-digit seconds, 13-digit milliseconds, 16-digit microseconds, or negative pre-1970 values) or an ISO 8601 date string to convert instantaneously between UTC, local time, and custom IANA time zones.

Cross-language systems constantly disagree on epoch precision: JWT exp claims and POSIX stat() use 10-digit seconds, JavaScript Date.now() and Kafka use 13-digit milliseconds, PostgreSQL/ClickHouse use 16-digit microseconds, and Go time.UnixNano() emits 19-digit nanoseconds.

This converter auto-detects precision by digit magnitude, displays a ticking live epoch clock you can capture with one click, verifies leap years (such as 2024-02-29), and formats synchronized UTC, RFC 2822, relative delta, and target IANA timezone strings.

Timestamp & Calendar Engineering Pitfalls

01. Passing Seconds Into JavaScript new Date(ts)

JavaScript Date expects milliseconds. Passing a 10-digit JWT exp like 1796371200 straight into new Date(1796371200) silently produces January 21, 1970 instead of December 2026.

02. Year 2038 Signed 32-Bit Overflow (Y2K38)

Signed 32-bit integer columns (INT) max out at 2,147,483,647 (2038-01-19T03:14:07Z). Always store Unix timestamps in 64-bit BIGINT or native TIMESTAMPTZ columns for long-lived contracts and certificates.

03. Ambiguous Date Strings Without Timezone Offset

Parsing "2026-12-04" defaults to UTC midnight in ECMAScript, whereas "2026-12-04T09:00:00" without a trailing "Z" parses in the browser local timezone—producing divergent epochs across servers and laptops.

Epoch Precision Scale Reference

Unit Typical Digits (2026) Ecosystem Defaults
Seconds (s) 10 digits (1796371200) Unix CLI, JWT exp/iat, Stripe API, SQLite
Milliseconds (ms) 13 digits (1796371200000) JavaScript Date.now(), Java, UUID v7, ULID
Microseconds (µs) 16 digits (1796371200000000) PostgreSQL, BigQuery, Chrome Traces
Nanoseconds (ns) 19 digits (1796371200000000000) Go time.Now().UnixNano(), OpenTelemetry

Worked Engineering Examples

Verifying a Leap Day Timestamp

Input
2024-02-29T12:00:00Z
Output
Epoch Seconds: 1709208000 · Day of Year: 60 · Leap Year: Yes

Validates Gregorian leap-year rules (divisible by 4, excluding centuries not divisible by 400).

Converting Pre-1970 Negative Epochs

Input
-14159025 (Apollo 11 First Step on Moon)
Output
1969-07-21T02:56:15.000Z (detected as seconds)

Signed timestamps represent dates before January 1, 1970 UTC cleanly down to negative milliseconds.

Frequently Asked Questions

How does auto-detection tell seconds apart from milliseconds?

Timestamps with up to 11 digits parse as seconds, 12–14 digits as milliseconds, 15–17 digits as microseconds, and 18+ digits as nanoseconds—so modern dates convert accurately without manual unit toggles.

Does Unix time include leap seconds?

No. POSIX Unix time defines every day as exactly 86,400 seconds and smears or replays leap seconds at the OS NTP layer rather than incrementing extra epoch seconds.

Can I paste an RFC 2822 HTTP Date header like "Fri, 04 Dec 2026 08:00:00 GMT"?

Yes. Both ISO 8601 strings and RFC 2822 HTTP header dates parse directly into all numeric epoch formats and target timezones.

How do I grab the current Unix timestamp quickly?

Click "Use Now" beside the live ticking clock banner to populate the converter with the exact current epoch.

Continue Your Workflow

24 offline developer utilities