Unix Timestamp Converter
Convert Unix timestamps to readable dates, and dates back to epoch time.
Unix timestamps
A Unix timestamp counts time from January 1, 1970 at 00:00:00 UTC. Logs, APIs, databases, and background jobs often use it because it is compact and easy for machines to compare.
Seconds or milliseconds
Many Unix tools use seconds, while JavaScript dates use milliseconds. This page accepts both common lengths and shows the matching date, seconds value, and milliseconds value together.
- Seconds:
1617296400 - Milliseconds:
1617296400000
Useful for
- Checking token expiry values
- Reading timestamps from logs or API responses
- Preparing test data for date handling
- Comparing dates across time zones
How to use Unix Timestamp Converter
The timestamp converter changes Unix time into readable dates and converts dates back to timestamps. It is useful when reading logs, APIs, and database fields.
Developers often use this page when they need unix time converter, timestamp converter, epoch converter, and unix timestamp converter.
Privacy and data handling
This tool is designed to run in your browser for normal use, so your input does not need to be sent to a server.
- Input and output stay on the page while you work.
- Copy buttons use your browser clipboard permission when available.
- Avoid pasting private production data on shared or untrusted devices.
Examples
Convert Unix seconds to a date
Input
1700000000Output
2023-11-14 22:13:20 UTCA 10-digit Unix timestamp is usually counted in seconds.
Convert Unix milliseconds to a date
Input
1700000000000Output
2023-11-14 22:13:20 UTCA 13-digit timestamp is usually counted in milliseconds.
Steps
- 1Paste a Unix timestamp or choose a date.
- 2Check whether the value is in seconds or milliseconds.
- 3Copy the converted date or timestamp.
Common use cases
- Read timestamps from logs.
- Convert API expiration times into local dates.
- Create test timestamps for scheduling code.
Practical tips
- Ten-digit timestamps are usually seconds.
- Thirteen-digit timestamps are usually milliseconds.
- Always check timezone when debugging time issues.
FAQ
What is a Unix timestamp?
It is a number that counts time from January 1, 1970 UTC. It may be stored in seconds or milliseconds.
Why is my timestamp date wrong?
The value may be milliseconds instead of seconds, or the timezone shown may not be the timezone you expected.