How to use Unix Timestamp Converter
- Paste a timestamp into “Timestamp → date”. Seconds, milliseconds, microseconds and nanoseconds are detected automatically.
- Read the date in UTC, ISO 8601 and your local time, plus how long ago it was.
- To go the other way, pick a date and time and choose whether it is local time or UTC.
- Copy any value with its Copy button. The current timestamp at the top updates every second.
About this tool
Unix time counts the seconds since 00:00:00 UTC on 1 January 1970, “the epoch”. It ignores time zones and daylight saving time, which makes it ideal for storing and comparing moments in time, and it ignores leap seconds: every day is treated as exactly 86,400 seconds. JavaScript and Java usually use milliseconds (13 digits today), many databases and Python use seconds (10 digits), and some systems use microseconds or nanoseconds.
Systems that store Unix time as a signed 32-bit integer run out at 03:14:07 UTC on 19 January 2038, when the count passes 2,147,483,647 and wraps to a date in 1901 – the “Year 2038 problem”. Modern systems use 64-bit values, which last for billions of years. Negative timestamps represent dates before 1970 and are supported here.
Frequently asked questions
How do I know if a timestamp is in seconds or milliseconds?
Count the digits: current dates have 10 digits in seconds and 13 in milliseconds. The tool detects this automatically, or you can choose the unit.
Does a Unix timestamp depend on my time zone?
No. The same moment has the same timestamp everywhere. Only the human-readable date differs, which is why both UTC and local time are shown.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). Linux/macOS shell: date +%s. SQL (PostgreSQL): extract(epoch from now()).
Is this tool really free?
Yes. There is no sign-up, no daily limit, no watermark and no paid tier. The site is supported by advertising shown on the page, not by charging for the tools.