Unix Timestamp Converter
See the current Unix time, turn any epoch timestamp into a human-readable date in any time zone, or convert a date back to seconds and milliseconds.
Runs in your browser — nothing is uploaded Free, no limits
Current Unix time
- Seconds
- —
- Milliseconds
- —
- UTC
- —
- Your time zone
- —
Timestamp → date
Date → timestamp
Batch convert
How to use the Timestamp Converter
- Paste a timestamp — the unit (seconds, milliseconds, microseconds or nanoseconds) is detected automatically.
- Read it as UTC, ISO 8601, RFC 2822, your local time and any time zone you choose.
- To go the other way, pick a date, time and time zone under Date → timestamp.
- Paste many timestamps (one per line) into Batch convert and download the table as CSV.
Frequently asked questions
What is a Unix timestamp?
It's the number of seconds since the Unix epoch, 1 January 1970 00:00:00 UTC, not counting leap seconds. It's the same everywhere in the world, which makes it ideal for storing and comparing times.
How do I tell seconds from milliseconds?
Count the digits: current timestamps are 10 digits in seconds, 13 in milliseconds (JavaScript's Date.now()), 16 in microseconds and 19 in nanoseconds. This tool uses that magnitude to detect the unit, and you can override it.
What is the year 2038 problem?
Systems that store Unix time as a signed 32-bit integer overflow at 2,147,483,647 seconds — 19 January 2038 03:14:07 UTC — and wrap to 1901. Modern systems use 64-bit timestamps, which last for billions of years.
Does a Unix timestamp have a time zone?
No. A timestamp is always UTC-based; the time zone only matters when you display it as a calendar date. That's why the same timestamp shows different local times in different zones.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). Linux shell: date +%s. In SQL, MySQL has UNIX_TIMESTAMP() and PostgreSQL has EXTRACT(EPOCH FROM now()).