Unix Timestamp Converter (Epoch ⇔ Date)
Instantly convert Unix time (epoch seconds or milliseconds) to a UTC, local or Japan time date, and a date back to Unix time.
1. Enter a Unix time or a date
Type in either field, and the other field and the results update right away.
Unit
Time zone
If it ends with Z or an offset like +09:00, that offset is used.
2. Results
Use the buttons on the right to copy each value.
- Date
- —
- ISO 8601
- —
- Unix time (seconds)
- —
- Unix time (milliseconds)
- —
Everything is calculated on this device. The numbers you enter are never sent anywhere.
Unix time doesn’t count leap seconds. The unit is told apart by the number of digits (for the current time, seconds have 10 digits and milliseconds 13).
Found it useful? We'd love a share
Something not working, or an idea to make it better?
How to use
1. Enter a Unix time
Type a number such as 1700000000 in “Unix time”. 10 digits are read as seconds and 13 digits as milliseconds automatically, and the date appears right away in “Results” below.
Type a number such as 1700000000 in “Unix time” on the left. 10 digits are read as seconds and 13 digits as milliseconds automatically, and the date appears right away in “Results” on the right.
2. Choose a time zone
Under “Time zone”, tap “UTC” to show the same moment as a UTC date. You can also choose “Japan” or “Local”.
Under “Time zone”, click “UTC” to show the same moment as a UTC date. You can also choose “Japan” or “Local”.
3. Get the Unix time from a date
Clear “Date and time” and type a date like “2026-01-01 09:00”. Its Unix time appears in the “Unix time” field above and in “Results” below.
Clear “Date and time” and type a date like “2026-01-01 09:00”. Its Unix time appears in the “Unix time” field above and in “Results” on the right.
4. Insert the current time and copy it
Tap “Now” to fill in the current Unix time. Tap the copy button to the right of “Unix time (seconds)” in the results to copy the number.
Click “Now” to fill in the current Unix time. Click the copy button to the right of “Unix time (seconds)” in the results to copy the number.
Great for
Reading timestamps in logs
See at a glance what date and time a number like 1700000000 in a server log or database stands for.
Engineers and operations staff
Making values for tests
Enter a date, copy its Unix time in seconds or milliseconds, and paste it straight into an API request or test data.
Developers and testers
Lining up times across time zones
Switch between UTC, your local time and Japan time to see what time the same moment is in each. You can copy it in ISO 8601 too.
Anyone working with teams abroad
Checking when something expires
Find out the exact date and time a Unix time such as a JWT “exp” or a cookie expiry runs out.
Web developers
Good to know before you start
- Leap seconds aren’t counted (as Unix time defines). It isn’t suited to astronomy or positioning calculations that need leap seconds.
- It handles January 1, year 1 to December 31, 9999 (UTC).
- Time zones can be chosen from Local, UTC and Japan time. For other regions, add an offset like +05:30 after the date.
What is Unix time?
Unix time (epoch time, or a Unix timestamp) is the number of seconds since 00:00:00 UTC on January 1, 1970. The same moment is the same number anywhere in the world, regardless of time zone, so it’s widely used in server logs, databases and APIs. Japan time is 9 hours ahead of UTC, so 0 is 9:00 AM on January 1, 1970 in Japan.
JavaScript and Java usually work in milliseconds (13 digits), while PHP, Python and Unix commands usually work in seconds (10 digits), and mixing them up puts the date far off. This tool tells seconds and milliseconds (and microseconds and nanoseconds) apart from the number of digits, and shows the unit it used to the right of the field.
FAQ
Answers to the things people most often wonder about when converting Unix time.
Are the numbers and dates I enter sent anywhere?
No. All conversions happen in the browser on your device, and the Unix times and dates you enter are never sent to a server. Even the current time comes from your device’s clock.
How does it tell seconds from milliseconds?
By the size of the number. Below 100 billion (10^11) it’s seconds, below 10^14 milliseconds, below 10^17 microseconds, and anything larger nanoseconds. For the current time, seconds have 10 digits and milliseconds 13. If it guesses wrong, choose “Sec” or “Millisec” under “Unit”.
How do I see the time in Japan?
Choose “Japan” under “Time zone”. It’s UTC plus 9 hours. Japan has no daylight saving time, so it’s always +09:00.
What does “Local” mean?
The time zone set on your phone or computer. Its name (such as America/New_York) and its offset from UTC appear under the date in the results. In regions with daylight saving time, the offset includes daylight saving time for that date.
What date formats can I enter?
It reads “2026-01-01 09:00:00”, “2026/1/1 9:00” and ISO 8601 such as “2026-01-01T09:00:00+09:00”, among others. If you leave out the time it uses midnight, and if you leave out the seconds it uses 0 seconds.
What happens if I add Z or +09:00 after the date?
The date is read with that offset instead of the chosen time zone (Z means UTC). A note such as “Read with the offset +09:00” appears under the date in the results.
Can it convert Unix times before 1970 or with decimals?
Yes. Times before 1970 are negative numbers (-86400 is midnight UTC on December 31, 1969), and decimals such as 1700000000.5 are converted down to the millisecond. It handles years 1 to 9999.
What is the year 2038 problem?
Older systems that store Unix time in seconds as a 32-bit integer overflow after 2147483647 (03:14:07 UTC on January 19, 2038) and jump back to 1901. This tool converts dates after 2038 correctly.
How are leap seconds handled?
Unix time doesn’t count leap seconds; every day is counted as exactly 86400 seconds. This tool counts the same way.
Is it free?
Yes. No sign-up, and no ads.
More tools
- Tax Calculator (Add or Remove Tax)
Enter a price to instantly see the amount before tax, the tax, and the total. Japan’s 10% and 8% rates are built in, or use any rate.
- Age Calculator
Pick a date of birth to see the exact age, days until the next birthday, days lived and the Chinese zodiac sign, with an age chart by birth year.
- Date Calculator (Add or Subtract Days)
Instantly get the date and weekday N days or N business days after or before any date. Weekends and holidays can be skipped too.
- Time Calculator (Work Hours Total)
Work out hours worked from start, end and break times, and add them up. Also adds and subtracts time and converts to decimal hours.
- Bill Splitter
Enter the total and the number of people to see what each person owes. Round to an easy amount, have some people pay more, and let the organizer cover the difference.
- Days Until (Day Counter)
Instantly count how many days are left until a date, or how many days are between two dates. Include the start day, or count weekdays only.