How to convert a Unix timestamp
- Paste a timestamp such as
1700000000. Seconds, milliseconds, microseconds and nanoseconds are detected automatically. - Read the date in UTC, in ISO 8601 and in the time zone you choose.
- To go the other way, type a date like
2026-01-31T12:00:00Zand copy the Unix time in seconds or milliseconds.
Good to know
- A date without a time zone, such as
2026-01-31T12:00, is read in your local time zone. A date only, such as2026-01-31, is read as UTC. - Unix time ignores leap seconds: every day is exactly 86,400 seconds.
- Negative timestamps are dates before 1970.
Frequently asked questions
What is a Unix timestamp?
It is the number of seconds that have passed since January 1, 1970 at 00:00:00 UTC, known as the Unix epoch. It does not depend on time zones, which makes it a simple way to store and compare moments in time.
Is my timestamp in seconds or milliseconds?
Current timestamps have 10 digits in seconds and 13 in milliseconds. JavaScript Date.now() returns milliseconds, while most Unix tools, databases and APIs use seconds. This converter detects the unit from the number of digits, and you can override it.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). Go: time.Now().Unix(). Bash: date +%s.
What is the year 2038 problem?
Systems that store Unix time in a signed 32-bit integer overflow on January 19, 2038 at 03:14:07 UTC. Modern systems use 64-bit integers, which last for billions of years.