Unix Timestamp Converter
Convert a Unix timestamp to a readable date and a date to a timestamp. Seconds and milliseconds are told apart automatically.
DeveloperResult
ISO 8601 (UTC)
2023-11-14T22:13:20Z
- Date (UTC)
- November 14, 2023
- Time (UTC)
- 22:13:20
- RFC 2822
- Tue, 14 Nov 2023 22:13:20 GMT
- Seconds
- 1700000000
- Milliseconds
- 1700000000000
- Detected unit
- Seconds
How does it work?
The Unix Timestamp Converter works both ways. In 'Timestamp → date' mode, you enter a number; with 'Auto' selected, values above 100 billion are read as milliseconds and smaller ones as seconds (current timestamps in seconds have 10 digits, in milliseconds 13, which is what makes auto-detection reliable). In 'Date → timestamp' mode, you enter a UTC date and time, and the tool converts it into seconds since 1 January 1970 00:00:00 UTC (the Unix epoch). All calculations use UTC, with no time zone offset involved. Example: enter 1700000000 with the 'Auto' unit — since it's below 100 billion it's read as seconds, and the result comes out to 14 November 2023, 22:13:20 UTC (ISO: 2023-11-14T22:13:20Z). Use this tool to find the real date behind a Unix timestamp in an API response or log file, make a database record's creation time readable, or work out a date's Unix timestamp before sending it to a system or API.
Formula
Unix timestamp = seconds since 1 January 1970 00:00:00 UTC Milliseconds = seconds × 1000
Example
Direction: Timestamp → date · Unix timestamp: 1,700,000,000 · Unit: Detect automatically → ISO 8601 (UTC): 2023-11-14T22:13:20Z
Similar Tools
Toolbox Get your Toolbox ready.
Star the tools you use most and, with an account, they follow you to every device.
Frequently asked questions
What is a Unix timestamp?
The number of seconds since 1 January 1970 00:00:00 UTC (the Unix epoch). It has no time zone, which is why systems use it to pass moments in time around.
How can I tell seconds from milliseconds?
Current timestamps have 10 digits in seconds (about 1.7 billion) and 13 in milliseconds (about 1.7 trillion). Auto-detect looks at that difference.
Is a negative timestamp valid?
Yes, it represents a date before 1 January 1970; the tool accepts negative values within its supported date range (roughly years 1 to 9999).
Do I have to enter a time when converting a date to a timestamp?
No, leaving the time field blank makes the tool use 00:00:00 UTC.
What's the RFC 2822 format in the result for?
Some older systems and email headers expect a date in RFC 2822 format ('Tue, 14 Nov 2023 22:13:20 GMT') instead of ISO 8601; the tool shows that format too.