Unix Timestamp & Date Calculator
Convert Unix epochs to human dates, calculate date arithmetic, and measure differences between dates.
Result
Time between dates
About this tool
Unix Timestamp & Date Calculator converts between integer Unix epochs and ISO 8601 / locale-formatted dates in both directions. Paste a number and it tells you whether you fed it seconds (10 digits), milliseconds (13 digits), microseconds (16), or nanoseconds (19) — and renders the corresponding date in UTC, your local time zone, and any time zone you pick from the IANA list. Going the other way, paste a date string in any common format and get the epoch.
A second mode handles date arithmetic: add or subtract days, hours, minutes from a base date; compute the difference between two dates as days/hours/minutes/seconds (or "3 years, 2 months, 14 days" if you prefer calendar units). All math runs in the browser using Temporal where available and a fallback library otherwise — no time-zone surprises from DST transitions, leap seconds (ignored, like in Unix time itself), or the 2038 rollover (we handle 64-bit timestamps natively).
When to use this tool
- Debugging logs. A log entry with epoch
1747459200— paste it, see "May 17, 2026 04:00 UTC", done. - Database date sanity checks. Verify a value stored as
BIGINTms actually decodes to the expected human date. - SLA / cron arithmetic. "What is 72 hours from now in Tokyo time?" — answered in two clicks.
- Token expiry. A JWT's
expclaim is an epoch — paste it here for the human-readable answer.
About the 2038 problem
32-bit signed Unix timestamps overflow at 03:14:07 UTC on 19 January 2038 (the "Y2038" bug). The fix is to use 64-bit timestamps, which most modern languages and databases default to today. Our calculator uses 64-bit internally — values past 2038, and well beyond the year 100,000, are computed correctly. Legacy systems on embedded hardware are the remaining exposure surface.Frequently asked questions
Why is my "timestamp" 13 digits long?
Does the tool handle time zones correctly?
Why is my year-arithmetic answer different from a simple division?
seconds / (365 * 86400) approximation drifts by ~6 hours per year.