Unix Timestamp → Date
Convert a Unix timestamp to a human-readable date. Auto-detects seconds vs. milliseconds.
0 characters
0 characters
About Unix Timestamp → Date
A Unix timestamp is the number of seconds (or milliseconds) since the Unix epoch — midnight UTC on January 1, 1970. This tool converts a timestamp to a human-readable date in both UTC and your local timezone. It auto-detects whether the input is seconds or milliseconds based on magnitude.
When to use it
- Decoding a timestamp from a log file or database
- Reading an 'exp' or 'iat' field from a JWT
- Converting an API response's timestamp into a calendar date
- Verifying the time component of a signed URL
How it works
If the input is < 10^11 (year ~5138 in seconds), it's treated as seconds and multiplied by 1000. Otherwise it's treated as milliseconds. The resulting Date object is formatted in ISO 8601 (UTC), RFC 2822 (UTC), and local time.
Examples
1700000000
2023-11-14T22:13:20.000Z (UTC) — Tue, 14 Nov 2023 22:13:20 GMT
Frequently asked questions
- Seconds or milliseconds?
- Auto-detected by magnitude. Values below 10^11 (which corresponds to year ~5138 in seconds) are treated as seconds; everything else as milliseconds. This catches both classic Unix timestamps and JavaScript-style millisecond timestamps correctly.
- Is timezone configurable?
- The output shows both UTC and your browser's local timezone. For a specific timezone, parse the UTC value with a date library that supports timezone arithmetic.