Convert between Unix timestamps and human-readable dates instantly. Supports Jalali calendar display and relative time.
Now:-
Timestamp → Date
Please enter a valid timestamp.
UTC-
ISO 8601-
Local-
Shamsi-
Day-
Relative-
Date → Timestamp
Please select a valid date.
Seconds-
Milliseconds-
About This Tool
Turn a Unix timestamp into a readable date, or go the other way and build the timestamp for a given date and time. A timestamp is the number of seconds elapsed since 1 January 1970, which is how databases, logs and APIs store time. No installation, no sign-up.
You need it when a ten-digit number turns up in a server log or an API response and you have to work out what moment it is, when you are querying a database for a time range and need the numbers at each end, or when a token has an expiry and you want to know when it runs out.
Every number you enter is shown at once as UTC, ISO 8601, local time, a Jalali date, the day of the week and a relative phrase; both seconds and milliseconds are accepted. The current timestamp also ticks at the top of the page and copies with one click. The maths runs on your own device.
Frequently Asked Questions
How do I turn a timestamp into a date?
Put the number into the timestamp box and set the unit to seconds or milliseconds. The six result rows build immediately. The Now button drops the current timestamp into the box for you.
How do I get the timestamp for a date?
In the date section, pick the date and time and set the zone to local or UTC. The output is given in both seconds and milliseconds.
Is my number in seconds or milliseconds?
Count the digits: current timestamps are ten digits in seconds and thirteen in milliseconds. Read a thirteen-digit number as seconds and you land far in the future; read a ten-digit one as milliseconds and you land near 1970.
How do I copy a result?
Click the value itself on any row and it is copied. The live timestamp at the top copies the same way.
Why does it say the timestamp is invalid?
The input is not a number, or it carries stray characters. If you copied the number out of JSON, a quote or comma probably came along with it.
What is the difference between UTC and local time?
Timestamps are always counted against UTC, and the local row shows the same moment shifted by your device's time zone. So the two rows showing different clock times is expected, not an error.
Which zone is "local" exactly?
Your own device's time zone. If the clock or time zone on your phone or computer is set wrongly, that row will be off by the same amount.
What is ISO 8601 for?
It is the standard way to write a moment in APIs and files, putting year, month, day and time in a fixed order against UTC. When you need to drop a time into a request or a config file, copy that row.
Where does the Jalali date come from?
The same moment converted to the Jalali calendar, written with the Persian month name. The day of the week has its own row.
How is the relative time worked out?
It states the gap from now in the largest sensible unit, such as "3 hours ago" or "2 days later". At the month and year scale the figure is approximate, because months are not all the same length.
How do I build a time range for a query?
Enter the date and time at the start of the range in the date section and take the seconds value, then do the same for the end. Keep the zone setting the same both times.
Do you have a separate Jalali to Gregorian converter?
Yes. The date converter is built for that, and the world clock tool shows the time difference between cities.
Is anything I enter stored?
No. All the maths runs on your own device and nothing is stored by us.