Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back again. Everything runs in your browser, so nothing is uploaded anywhere.
- Free
- No sign-up
- Runs in your browser
Current Unix time
Seconds
—
Milliseconds
—
Timestamp to date
Date to timestamp
Unix time counts the seconds since 1 January 1970 (UTC). Auto mode treats numbers of 12 digits or more as milliseconds, so use the Seconds option if you work with dates very far in the future.
What it is for
Unix time counts the seconds since 1 January 1970 (UTC). Programs, databases and logs use it because a single number means the same moment everywhere. This tool converts those numbers to readable dates, and dates back to numbers.
- Read the timestamp in a log line, a database row or an API response.
- Check when a token or a cache entry expires.
- Work out the timestamp for a specific date and time.
- Spot whether a system used seconds or milliseconds.
How to use it
- Paste a timestamp into the first box. Leave the unit on Auto, or pick Seconds or Milliseconds.
- Read the result in UTC, your own time zone, ISO 8601 and as a relative time.
- To go the other way, enter a date and time and choose My time zone or UTC.
- Copy any result with its Copy button.
Examples
Seconds to a date
You enter
1700000000You get
ISO 8601 (UTC): 2023-11-14T22:13:20.000Z
UTC: Tue, 14 Nov 2023 22:13:20 GMTMilliseconds give the same moment
You enter
1700000000000You get
2023-11-14T22:13:20.000ZAuto mode treats numbers with 12 or more digits as milliseconds.
Where it all starts
You enter
0You get
1970-01-01T00:00:00.000ZThis starting point is called the Unix epoch.
Good to know
- Unix time counts the seconds since 1 January 1970 (UTC), so it means the same moment everywhere in the world.
- Auto mode treats numbers with 12 or more digits as milliseconds. Use the Seconds or Milliseconds button when you know which one you have.
- Results include UTC, your local time zone, ISO 8601 and a relative time such as 3 years ago.
- You can also convert a date back into a timestamp, in your own time zone or in UTC.
Limits and disclaimers
- Auto mode guesses the unit from the number of digits. If the result looks wrong, choose Seconds or Milliseconds yourself.
- The local time shown depends on your device's time zone setting. UTC is the same for everyone.
- Unix time ignores leap seconds, so it can differ by a few seconds from some precise scientific time scales.
- Very old or far-future dates depend on how your browser handles dates, so check them if they matter.
ByteKit is provided as is, for convenience. Check any result that matters before you use it in production, and keep passwords, keys and personal data out of any website you do not control.
Questions people ask
Is a timestamp in seconds or milliseconds?
Count the digits. About 10 digits (like 1700000000) means seconds, and about 13 digits means milliseconds. JavaScript uses milliseconds, and most other systems use seconds.
Does a Unix timestamp have a time zone?
No. It always counts from the same UTC moment. Time zones only matter when you display it as a date.
Why 1 January 1970?
Early Unix developers chose it as a convenient starting point, and it became the standard.
Guides
Longer reads from the ByteKit blog that go with this tool.