Unix Timestamp Converter
Convert Unix timestamps in seconds or milliseconds to UTC and local dates, and dates back to timestamps. Auto-detects units. Free, in your browser.
Timestamp to date
Date to timestamp
About Unix Timestamp Converter
The Unix Timestamp Converter turns a number like 1700000000 into a readable date in UTC and your local time, and turns a date back into a timestamp.
Seconds or milliseconds
Detected for you: 10-digit values are read as seconds, 13-digit values as milliseconds.
Example
1700000000 is 14 November 2023, 22:13:20 UTC.
Date to timestamp
Pick a date and time and choose whether it is your local time or UTC.
The year 2038 problem
Systems that store time as a signed 32-bit number run out on 19 January 2038 at 03:14:07 UTC.
Good to know
Unix time ignores leap seconds.
Private
Everything runs in your browser. Nothing you paste is uploaded.
What is Unix time?
Unix time counts the seconds since 00:00:00 UTC on 1 January 1970, called the Unix epoch. It ignores leap seconds and is the same everywhere in the world.
Get it in code
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). MySQL: UNIX_TIMESTAMP().
How to use Unix Timestamp Converter
- Type the Unix timestamp in seconds or milliseconds.
- Read the UTC time, local time and how long ago it was.
- To go the other way, pick a date and time and the zone.
- Copy the timestamp you need.
Related guide: Unix Timestamps and Time Zones Explained
Help & FAQ
What does the Unix Timestamp Converter do?
It converts Unix timestamps to UTC and local dates and converts a date and time back to a timestamp.
What is a Unix timestamp?
The number of seconds since 1 January 1970 at 00:00 UTC.
How does it know seconds from milliseconds?
Automatically, by the size of the number. Ten digits were read as seconds and thirteen as milliseconds in the tests, and the page says which one it used.
Does it support negative timestamps?
Yes. In the test -1 gave 1969-12-31T23:59:59.000Z.
What about microseconds or nanoseconds?
Only seconds and milliseconds are offered. Divide by 1,000 or 1,000,000 first.
What time zone is local time?
Your device's zone. In the test, a computer in Pakistan showed GMT+0500.
How do we get the timestamp for a UTC date?
Choose UTC in Interpret as and enter the date. 2023-11-14 22:13 gave 1699999980.
Why is the same clock time a different timestamp in local mode?
Because it is read in your own zone. 22:13 in UTC+5 is 17:13 UTC, giving 1699981980.
What is the Year 2038 problem?
Signed 32-bit timestamps overflow on 19 January 2038 at 03:14:07 UTC. This tool is not limited that way.
What does Enter digits only mean?
The box takes a number. Letters such as abc are refused.
Can we copy the current timestamp?
Yes. Press Copy now to copy the current time in seconds.
Is our input uploaded?
No. The conversion is done in your browser.