Guide
Converting Unix timestamps without seconds-versus-milliseconds mistakes
A Unix timestamp counts the seconds since 1 January 1970 at 00:00 UTC, the “epoch”. Logs, APIs, databases, JWTs and file systems use it because it’s a single number with no time zone, easy to store and compare. People can’t read it, though. This converter turns timestamps into readable dates, and dates back into timestamps.
Converting a timestamp
- Paste the number. Click Use now to start from the current time.
- The unit is detected from its length and shown as Detected: seconds (or milliseconds, microseconds, nanoseconds).
- Read the result in several forms:
- Local: full date and time in your time zone.
- UTC: the same moment in Coordinated Universal Time.
- ISO 8601:
2026-10-07T00:00:00.000Z, the format to use in APIs and logs. - Relative: such as “in 3 days” or “2 hours ago”.
- Seconds and Milliseconds: the same moment in both units.
You can also paste date text, such as 2026-10-07 14:30 or an ISO string, and see all the formats.
Converting a date to a timestamp
Use Date and time (your time zone) to pick a moment, then copy its seconds or milliseconds. Remember the date is interpreted in your time zone; for a UTC time, enter an ISO string ending in Z in the first box instead.
Examples
| Timestamp | Unit | UTC |
|---|---|---|
0 |
seconds | 1970-01-01 00:00:00 |
1700000000 |
seconds | 2023-11-14 22:13:20 |
1791331200 |
seconds | 2026-10-07 00:00:00 |
1791331200000 |
milliseconds | 2026-10-07 00:00:00 |
2147483647 |
seconds | 2038-01-19 03:14:07 |
How the unit is detected
| Digits (for current dates) | Unit | Typical source |
|---|---|---|
| 10 | seconds | Unix tools, PHP, Python time.time(), JWT claims |
| 13 | milliseconds | JavaScript Date.now(), Java, many JSON APIs |
| 16 | microseconds | PostgreSQL internals, some tracing tools |
| 19 | nanoseconds | Go, InfluxDB, Prometheus-style metrics |
Common mistakes
- Seconds vs milliseconds. A date in 1970 means milliseconds were read as seconds; a date tens of thousands of years ahead means the opposite.
- Time zones. A timestamp has no time zone; only the display does. 14:00 UTC is 16:00 in Berlin in summer. When comparing logs from different servers, compare UTC.
- Daylight saving time. Local times can repeat or be skipped when clocks change, but timestamps never do. Store timestamps or UTC, and convert to local time only for display.
- Leap seconds. Unix time ignores them, so it differs slightly from true elapsed atomic time. For everyday software this doesn’t matter.
- The year 2038 problem. Signed 32-bit seconds overflow at 2147483647, on 19 January 2038. Check old databases, file formats and embedded devices.
Where you’ll meet timestamps
- JWTs:
exp,iatandnbfare timestamps in seconds. The JWT Decoder shows them as dates. - Logs and monitoring: often milliseconds or nanoseconds.
- Databases:
created_atcolumns stored as integers. - UUID v7: its first 48 bits are a millisecond timestamp.
Privacy
Conversion happens in your browser; nothing you paste is sent anywhere.
Who converts timestamps
- Developers read timestamps in logs, databases and API responses.
- Support engineers match a customer’s report with log entries.
- Data analysts convert epoch columns in exports.
- Security analysts build incident timelines from logs in different formats.
A complete example: matching a customer report with logs
A customer reports an error at 14:05 their time in Berlin, in summer:
- Berlin in summer is UTC+2, so the error was at 12:05 UTC.
- Convert log timestamps around that time; for example
1791374700is 2026-10-07 12:05 UTC. - Search the logs for the window between 12:00 and 12:10 UTC on the right day, converting candidate entries to confirm.
Tips
- Store and compare times in UTC; convert to local time only for display.
- Check whether a log uses seconds or milliseconds before searching.
Related tools
- JWT Decoder for token expiry times.
- Time Zone Converter to compare a time across cities.
- Date Calculator for days between dates.
- Cron Expression Parser for scheduled times.
Checked against the current version of the Timestamp Converter on .

