Unix Timestamp Converter
Paste Unix seconds, milliseconds, or an ISO-8601 string. Auto treats up to 10-digit numbers as seconds and 13-digit numbers as milliseconds.
Rated 4.7 out of 5 based on 280 reviews
How to convert Unix time
- Paste Unix seconds, milliseconds, or an ISO-8601 datetime. Empty uses now.
- Auto treats up to 10-digit numbers as seconds and 13-digit numbers as milliseconds.
- Read UTC ISO, HTTP / RFC 1123, RFC 5322, SQL UTC, local, relative, seconds, and milliseconds.
- Use Now to fill the current Unix seconds from this device.
Unix time
Seconds or milliseconds since 1970-01-01T00:00:00Z
| Auto seconds | 0 and integers with at most 10 digits |
|---|---|
| Auto milliseconds | Integers with 13 or more digits |
| ISO-8601 | Date.toISOString() in UTC |
| HTTP / RFC 1123 | IMF-fixdate in GMT |
| Leap seconds | JavaScript Date POSIX model, not leap-second aware |
What Unix time is
Unix time counts SI seconds from the 1970 UTC epoch, ignoring leap seconds the way JavaScript Date does. This page uses that Date model, not a leap-second-aware timescale. Apple CF Absolute Time (seconds from 2001-01-01) is not auto-detected; convert that on a dedicated converter later.
Seconds vs milliseconds
Auto matches the usual epoch-converter rule: 10-digit values are seconds (current Unix time), 13-digit values are milliseconds. Zero is seconds. 11-digit and 12-digit magnitudes are rejected in Auto so they are not silently multiplied. Force Unix seconds or Unix milliseconds when you know the unit.
Output fields
UTC ISO-8601 is always Zulu. HTTP / RFC 1123 is the GMT IMF-fixdate used in headers. SQL UTC is YYYY-MM-DD HH:mm:ss UTC. Local is this device's clock string. For a named IANA zone, use the time zone converter.