Type a tool name, for example "keyword density" or "transcript".
Convert Unix timestamps to dates and dates to timestamps.
This Unix timestamp converter turns epoch numbers into readable dates and turns dates back into timestamps. Paste a number in seconds or milliseconds to see UTC, local time, ISO 8601 and a relative description, or pick a date and time to get the matching timestamp. It is free and needs no sign-in.
A Unix timestamp is the number of seconds that have passed since 00:00:00 UTC on January 1, 1970, a moment known as the Unix epoch. Because it is one number with no time zone attached, it gives systems a compact, unambiguous way to store and compare moments in time.
The value 0 is the epoch itself, 86400 is exactly one day later (24 × 60 × 60 seconds), and negative numbers point to moments before 1970. Many systems also store the same moment in milliseconds, which is the seconds value multiplied by 1,000. JavaScript dates, many web APIs and some log formats work this way.
The fastest check is to count digits. Timestamps for present-day dates have 10 digits in seconds and 13 digits in milliseconds.
| Digits | Unit | Example |
|---|---|---|
| 10 | Seconds | 1700000000 |
| 13 | Milliseconds | 1700000000000 |
The Auto option follows the same idea. When the absolute value of your number is above 9999999999, it is read as milliseconds. Anything at or below that is read as seconds.
You can convert in both directions on one page, and each direction has its own button. Follow these steps.
Changing the input or the unit clears the previous result, so you never read a stale answer.
Entering 1700000000 with the unit set to Seconds (or Auto) shows a UTC time of Tue, 14 Nov 2023 22:13:20 GMT and an ISO 8601 value of 2023-11-14T22:13:20.000Z. The Local line depends on your device. A computer set to US Central time shows 4:13:20 PM on the same day, and one set to US Eastern shows 5:13:20 PM.
The Relative line tells you how far that moment is from now, so for a date in 2023 it reads as a past event. If you type 1700000000000 instead, Auto sees a 13-digit number, treats it as milliseconds and returns the exact same date.
Now try the reverse. Say you want the timestamp for midnight on January 1, 2024. On a device set to UTC, entering 2024-01-01 00:00:00 returns 1704067200 seconds. On a device set to US Central (UTC-6), the same entry returns 1704088800, because midnight in Chicago happens six hours after midnight in UTC (1704067200 + 21,600). Both answers are correct. They describe different moments.
Each result line answers a different question, so use the one that matches your task.
UTC is the neutral reference time. Use it when you compare values from servers, logs or teammates in different regions, because it does not shift with daylight saving time.
Local shows the same moment in your device's time zone and date format. Use it to answer "when did this happen for me?" Do not paste it into code or a spreadsheet shared with others, since it changes with each viewer's settings.
ISO 8601 is the standard text format, such as 2023-11-14T22:13:20.000Z. The trailing Z means UTC. It is the safest choice for APIs, databases, and fields such as the lastmod date in an XML sitemap.
Relative gives a quick sanity check. If a "created" timestamp should be from last week but the result says several decades ago, you are probably reading the wrong unit.
Each platform has a short pattern, and you can confirm your result against this page. Use these as starting points.
=A2/86400+DATE(1970,1,1) and format the cell as date and time. For milliseconds, divide by 86400000 instead.FROM_UNIXTIME(1700000000) returns a date and time in the database session's time zone.datetime.fromtimestamp(1700000000, tz=timezone.utc) returns an aware UTC datetime.new Date(1700000000 * 1000), because the constructor expects milliseconds.<t:1700000000:F>. Convert your target date here, copy the Seconds value and put it in the tag.If your spreadsheet answer differs from this page by several hours, the difference is almost always the time zone setting, not the formula.
Anyone who meets raw epoch numbers benefits from a quick decoder. These are the common situations.
If you work with dates in other ways, the age calculator measures the elapsed time between a birth date and today, and the online calculators and utilities hub lists related helpers.
Keep timestamps and ISO 8601 values in UTC in your systems. Convert to local time only when you display a date to a person.
The timestamp field accepts digits with an optional plus or minus sign. A value such as 1700000000.5, a number with commas, or text with spaces inside shows the message "Enter a whole timestamp within the safe integer range." Remove the decimal part or separators and try again.
This message appears when the number is too large to be a real date. It usually means a very long value, such as a microsecond or nanosecond timestamp (16 or 19 digits). Divide it by 1,000 for each step down: microseconds to milliseconds, then pick Milliseconds.
This appears when the date field is incomplete or invalid. Fill in the full date and time, including the time portion, and click Convert to Timestamp again.
Choosing Seconds for a 13-digit number gives a date tens of thousands of years away. Choosing Milliseconds for a 10-digit number gives a date in January 1970. When the result looks absurd, switch the unit first.
Systems that store seconds in a signed 32-bit integer overflow after 2147483647, which is January 19, 2038, 03:14:07 UTC. You can paste that number here to see it. To explore why that limit exists, the binary calculator shows how 31 bits of ones add up to that value.
The converter works with whole numbers, so fractional seconds in the timestamp field are not accepted. When you convert a date to a timestamp, the seconds value is rounded down to the whole second, while the milliseconds value keeps the exact figure.
The date picker reads the date and time you choose as your device's local time. There is no separate time zone selector. To get a timestamp for a specific zone, work out the offset or set your device to that zone. Leap seconds are not counted in Unix time, which is why every day is exactly 86,400 seconds long.
Use the converter above to decode a number from a log, check an API value or build a timestamp for your next project. Paste the number or choose a date, click the convert button, and copy the result you need.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato MarketChoose seconds or milliseconds explicitly. Auto uses the magnitude and can be ambiguous near the epoch. For example, -1000 milliseconds is 1969-12-31T23:59:59.000Z. UTC and local displays refer to the same instant.
Implementation reviewed: 4 October 2026. Source documentation