How to use the Unix timestamp converter
- To read a timestamp, paste it into Unix timestamp. Leave the unit on automatic and the tool treats values of 11 or more digits as milliseconds and shorter ones as seconds.
- Press Convert to date. You get the exact UTC time in ISO 8601 format, the same moment in US Eastern time, in your own device's time zone, and a relative phrase such as "2 years ago".
- To go the other way, pick a date and time in the second form, choose which time zone that clock reading belongs to, and press Convert to timestamp.
- Copy the seconds or the milliseconds value with one click and paste it into your code, a log search, a spreadsheet or an API request.
- Use Use current time or Fill in now when you simply need the timestamp for this very moment.
What is a Unix timestamp?
A Unix timestamp, also called epoch time or POSIX time, is the number of seconds that have passed since 00:00:00 UTC on January 1, 1970, a moment known as the Unix epoch. It is a single number that identifies one exact instant on Earth, regardless of time zones or daylight saving time. For example, 1700000000 is Tuesday, November 14, 2023 at 22:13:20 UTC, which was 5:13:20 p.m. Eastern Standard Time.
Computers love this format because it is compact, sorts correctly, and makes date math trivial. The gap between two events is just a subtraction, and adding one day means adding 86,400 seconds. Databases, log files, JSON APIs, JWT tokens, cron jobs and file systems all use timestamps for this reason.
Seconds versus milliseconds
Different systems use different precision. Classic Unix tools, PHP, Python's time.time() (as a float) and many databases use seconds, giving a 10-digit number today. JavaScript's Date.now(), Java's System.currentTimeMillis() and many web APIs use milliseconds, giving a 13-digit number. Some systems use microseconds or nanoseconds, which have 16 or 19 digits. If a date looks like it is in the year 55,000 or in January 1970, you have almost certainly mixed up seconds and milliseconds. The automatic unit detection here catches that for you, and you can override it when you know better.
Time zones and daylight saving time
A timestamp itself has no time zone. The time zone only matters when you display it or when you convert a local clock reading into a timestamp. That is why the second form asks which zone your date belongs to. The same wall-clock time of 9:00 a.m. is a different timestamp in New York and in London. The tool uses the official time zone database built into your browser, so US Eastern time correctly switches between EST (UTC−5) and EDT (UTC−4) depending on the date.
Developers working across regions are usually best off storing and transmitting UTC timestamps and converting to local time only at the moment of display. When you debug a bug report that says "it broke at 3 p.m.", this converter helps you line up that local time with the UTC entries in your server logs.
Useful reference timestamps
| Timestamp (seconds) | UTC date and time |
|---|---|
| 0 | January 1, 1970, 00:00:00 |
| 946684800 | January 1, 2000, 00:00:00 |
| 1000000000 | September 9, 2001, 01:46:40 |
| 1700000000 | November 14, 2023, 22:13:20 |
| 2147483647 | January 19, 2038, 03:14:07 |
The last row is famous. A signed 32-bit integer can hold at most 2,147,483,647, so systems that still store time in that format will overflow on January 19, 2038, an issue often called the Year 2038 problem. Modern software uses 64-bit values, which last for roughly 292 billion years. You can paste 2147483647 into the converter to see the exact moment, and 2147483648 to see how it would continue with a larger integer.
Negative timestamps and leap seconds
Moments before the epoch are represented by negative numbers. The value -86400 is December 31, 1969, exactly one day before the epoch, and the converter handles these correctly. Unix time also ignores leap seconds: every day is treated as exactly 86,400 seconds long, so it does not match atomic time to the last second. For logs, scheduling and everyday programming that rarely matters, but it is why you should not use Unix time for scientific timekeeping.
Common ways to get a timestamp in code
In a Linux or macOS terminal, date +%s prints the current time in seconds. In JavaScript, Math.floor(Date.now() / 1000) does the same. In Python, int(time.time()) works. In SQL dialects, functions such as UNIX_TIMESTAMP() or EXTRACT(EPOCH FROM now()) give you seconds. This page is a quick way to check your results without writing any code. If you are also formatting data while debugging, the JSON Formatter and the Date Difference Calculator are useful neighbors.
Private by design
All conversions run locally with your browser's built-in date functions. The timestamps and dates you enter are never uploaded, stored or tracked, no account is needed, and the page keeps working offline after it loads.
Frequently asked questions
What is a Unix timestamp?
It is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC, known as the Unix epoch. It identifies one exact moment independent of time zones.
How do I tell whether a timestamp is in seconds or milliseconds?
Count the digits. Current dates have about 10 digits in seconds and 13 digits in milliseconds. The converter detects this automatically and lets you force a unit if you need to.
How do I convert a Unix timestamp to a date?
Paste the number into the first form and press Convert to date. You will see the UTC date in ISO 8601 form, US Eastern time, your device time and a relative description.
How do I get the current Unix timestamp?
The current value is displayed at the top of the tool and updates every second. You can also press Use current time to fill it in. In code, use date +%s in a terminal or Date.now() divided by 1000 in JavaScript.
What is the Year 2038 problem?
Systems that store Unix time as a signed 32-bit integer will overflow after 2,147,483,647 seconds, which is January 19, 2038 at 03:14:07 UTC. Modern 64-bit systems are not affected.
Does a Unix timestamp include time zone or daylight saving information?
No. A timestamp always counts seconds from the epoch in UTC. Time zones only matter when converting to or from a local clock time, which is why the date-to-timestamp form asks for the zone.
Can a Unix timestamp be negative?
Yes. Negative values represent moments before January 1, 1970. For example, -86400 is December 31, 1969 at 00:00:00 UTC.
Why is my converted date in 1970 or in the year 50,000?
That usually means seconds and milliseconds were mixed up. A millisecond value read as seconds lands tens of thousands of years in the future, and a seconds value read as milliseconds lands in January 1970. Switch the unit and try again.
Is my data sent to a server?
No. The conversion uses your browser's own date functions, and nothing you enter is uploaded, stored or tracked.
Related tools
Need custom software, a faster website or help with digital projects? The team at 4D1A can help.