regula.tools
100% Client-SideConverters

Unix Timestamp & Epoch Converter

Instantly convert Unix epoch timestamps—across seconds, milliseconds, microseconds, and nanoseconds—into UTC ISO 8601, RFC 2822, relative time, and any IANA timezone. Ideal for debugging JWT `exp`/`iat`/`nbf` claims, database logs, distributed traces, and API payloads without sending data to a server.

Loading workspace...

#How to Use This Tool

1Choose "Epoch → Human Date" to decode a numeric timestamp, or "Date / ISO 8601 → Epoch" to encode a date string.
2Leave Input Unit on "Auto-Detect" or explicitly lock it to Seconds (s), Milliseconds (ms), Microseconds (µs), or Nanoseconds (ns).
3Select any IANA Target Timezone (such as UTC, Europe/Istanbul, America/New_York, or Asia/Tokyo) to preview localized formatting.
4Copy any converted unit, ISO 8601 string, or shareable URL directly from the output cards.

#Mathematical Formula & Standards

Unix time measures elapsed seconds since the POSIX epoch (`1970-01-01T00:00:00Z`), excluding leap seconds. Magnitude auto-detection classifies 10-digit values (`< 10^11`) as seconds, 13-digit values (`< 10^14`) as milliseconds, 16-digit values (`< 10^17`) as microseconds, and 19-digit values as nanoseconds. Signed 32-bit integers cap at `2^31 - 1 = 2,147,483,647` (`2038-01-19T03:14:07Z`), after which legacy 32-bit systems suffer the Year 2038 overflow.

#Edge Cases & Technical Considerations

Seconds vs. Milliseconds vs. Nanoseconds

JWT claims (`exp`, `iat`, `nbf`) and POSIX `time()` use 10-digit seconds, JavaScript `Date.now()` and Java `System.currentTimeMillis()` use 13-digit milliseconds, while Go `time.Now().UnixNano()` and OpenTelemetry spans emit 19-digit nanoseconds.

The Year 2038 Problem (Y2038)

Legacy systems storing Unix time as a signed 32-bit integer overflow after `2,147,483,647` (`2038-01-19T03:14:07Z`), wrapping around to `1901-12-13`. Modern 64-bit systems and databases (`BIGINT` / `TIMESTAMPTZ`) avoid this limit.

Negative Epochs (Pre-1970)

Negative epoch values such as `-86400` represent dates prior to January 1, 1970 (`1969-12-31T00:00:00Z`) and are supported accurately across all units.

#Frequently Asked Questions

Q:How does auto-detection distinguish seconds from milliseconds?

Values with magnitude below 10^11 (up to 10 digits around modern dates) are treated as seconds, up to 10^14 (13 digits) as milliseconds, up to 10^17 (16 digits) as microseconds, and 10^17+ as nanoseconds. You can override this anytime using the Unit selector.

Q:Does Unix time include leap seconds?

No. POSIX Unix time treats every day as exactly 86,400 seconds and ignores UTC leap seconds.

Q:Can I convert JWT exp and iat timestamps here?

Yes. JWT `exp`, `iat`, and `nbf` claims are standard Unix epoch seconds. Paste them directly or use the JWT +1h preset to inspect expiration times.

Q:Are my timestamps or log strings sent to a server?

Never. All epoch conversions, BigInt sub-second scaling, and Intl timezone formatting run 100% locally in your browser.

Have feedback or feature requests?

Help us improve this utility. Share suggestions, report edge cases, or request new features directly.

Send Feedback