Loading...
Loading...
Convert any Unix epoch number into a date, or any date into an epoch. Handles both seconds and milliseconds, shows ISO 8601, UTC, local, and relative formats, and ships with a live now-clock plus quick references for start-of-day, week, month, and year.
Click any value to load it as the current timestamp.
A Unix timestamp (also called epoch time) is the number of seconds that have passed since 00:00:00 UTC on January 1, 1970 — the so-called Unix epoch. It's the standard way computers store moments in time because it's a single integer that's timezone-agnostic and easy to compare. You'll see timestamps in API responses, database records, log files, JWT claims, cookie expiries, and anywhere two systems need to agree on when something happened. The format comes in two flavors: seconds (10 digits for any current date) and milliseconds (13 digits, used by JavaScript and many web APIs). This tool handles both, runs entirely in your browser, and shows the result in every common format at once.
Choose Epoch → Date if you have a number you want to read as a date, or Date → Epoch if you want to convert a calendar moment into an integer.
For epochs, paste any 10-digit (seconds) or 13-digit (milliseconds) number — auto-detect handles both. For dates, use the picker or type in YYYY-MM-DDTHH:MM:SS format.
Outputs include ISO 8601, UTC string, local time, relative ("in 3 hours"), and both seconds and milliseconds. Click copy on any row to grab it.
Click any of the reference buttons (Now, Start of today, Unix epoch, Y2038 limit, etc.) to load that timestamp into the input.
Unix timestamp = seconds since 1970-01-01 00:00:00 UTC Examples: 0 → 1970-01-01 (the epoch itself) 1000000000 → 2001-09-09 (one billion seconds) 1700000000 → 2023-11-14 2147483647 → 2038-01-19 (signed 32-bit limit) Conversion: ms_timestamp = sec_timestamp × 1000 date_object_ms = epoch_value > 1e12 ? epoch_value : epoch_value × 1000 date = new Date(date_object_ms)
Epoch time is timezone-neutral — the same integer means the same moment everywhere on earth. To turn it into something a human can read, you apply a timezone offset. ISO 8601 (`2024-01-15T12:34:56Z`) keeps it in UTC; the local format applies your browser's offset. JavaScript stores timestamps in milliseconds, while Unix shells, database fields, and most APIs use seconds — that's why this tool detects the unit by checking whether the value is above 10¹² (a moment well beyond the year 5000 if interpreted as seconds, but plausible if interpreted as milliseconds).
Reference: POSIX.1-2017 §4.16 — Seconds Since the Epoch
| Input | Output |
|---|---|
1700000000 (seconds) | 2023-11-14T22:13:20Z Standard 10-digit epoch — auto-detected as seconds. |
1700000000000 (milliseconds) | 2023-11-14T22:13:20Z 13-digit value — auto-detected as milliseconds, same moment. |
0 | 1970-01-01T00:00:00Z The Unix epoch itself. |
2024-01-15 12:00 local → epoch | Depends on your timezone offset Date → Epoch always interprets the input in your local timezone. |
Format, validate, and minify JSON with precise error line and column reporting.
Encode and decode Base64 text with optional URL-safe variant and UTF-8 support.
Split JSON Web Tokens into header, payload, and claims with readable expiry dates.
Calculate your exact age in years, months, and days from any date of birth.
Last updated