Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates.
- UTC (ISO 8601)
- —
- Local time
- —
- Relative
- —
- Unix (seconds)
- —
- Unix (milliseconds)
- —
This tool needs JavaScript enabled to run in your browser.
What this tool does
This tool converts between Unix timestamps and readable dates, both ways. Enter a timestamp to see its UTC and local date, or enter a date to get the Unix value in seconds and milliseconds. Use the Now buttons to drop in the current moment.
What a Unix timestamp is
A Unix timestamp counts the time since midnight on 1 January 1970 UTC, a point known as the epoch. It is a single number with no time zone, which is why it is used in logs, APIs and databases: everyone agrees on the value, and formatting into a local date happens at the edges.
Seconds or milliseconds
Classic Unix time counts whole seconds. JavaScript and many systems count milliseconds, which is the same instant multiplied by a thousand. If a converted date lands near 1970 when you expected today, your value is probably in the other unit. Switch the unit to match.
Common use cases
- Reading a timestamp from a log line or an API response.
- Working out when a token expires from its
expclaim. - Building a date for a test fixture or a query.
Frequently asked questions
- Seconds or milliseconds?
- Unix time is usually counted in seconds since 1 January 1970 UTC. JavaScript and many logs use milliseconds. Pick the unit that matches your value.
- Which time zone is shown?
- The tool shows the UTC (ISO 8601) value and your browser local time, so you can compare both.
Learning resources
Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.