Unix Timestamp Converter - Epoch Time to Date & Back
Convert Unix timestamps (seconds or milliseconds) to human-readable UTC and local dates, or turn any date into its epoch value.
Paste a timestamp and the converter auto-detects whether it is in seconds or milliseconds, then shows the ISO 8601 string, UTC time, your local time, and how long ago it was. The reverse direction turns a calendar date into epoch seconds and milliseconds.
Unix Timestamp Converter - Epoch Time to Date & Back
Convert Unix timestamps (seconds or milliseconds) to human-readable UTC and local dates, or turn any date into its epoch value.
Timestamp → date
Date → timestamp
How it works: Unix time counts the seconds elapsed since the epoch, 1970-01-01T00:00:00Z, ignoring leap seconds. Milliseconds are the same count × 1000.
About the Unix timestamp converter
Unix time — also called epoch time or POSIX time — is the way most computers keep track of moments in time. It is simply a count of the seconds that have elapsed since the epoch, midnight UTC on the first of January 1970, without counting leap seconds. A single integer is easy to store, compare, and subtract, which is why you find Unix timestamps everywhere: database columns, API responses, JWT expiry claims, log lines, cache headers, cron schedulers, and file metadata. The catch is that a raw number like 1712345678 means nothing to a human, and that is exactly the gap this converter closes.
Paste a timestamp and the tool shows the same instant four ways: as an ISO 8601 string with a Z suffix, as a plain UTC date and time, as the equivalent wall-clock time in your own timezone (with the UTC offset spelled out), and as a relative description such as how many days or years ago the moment occurred. Because systems disagree about precision — Unix tools and most backends use seconds, while JavaScript's Date.now(), Java's System.currentTimeMillis(), and many event pipelines use milliseconds — the converter auto-detects the unit from the magnitude of the number. Values with more than eleven digits are treated as milliseconds; anything shorter is treated as seconds. If you are working with unusual data you can override the detection and force either unit explicitly.
The reverse direction is just as common: you know the calendar date and need the epoch value for a query, a test fixture, or an API parameter. Pick the date and time in the date field — it is interpreted in your local timezone, matching what you would expect from a form input — and the tool returns both epoch seconds and epoch milliseconds. The Now button fills in the current moment so you can grab today's timestamp with one click.
A few practical details are worth knowing. Unix time is timezone-free: the same timestamp is the same instant everywhere on Earth, and only its human-readable rendering changes with the timezone. Negative timestamps are valid and represent moments before 1970. Systems that store seconds in a signed 32-bit integer overflow on 19 January 2038, which is why modern software uses 64-bit values or milliseconds. And because Unix time ignores leap seconds, it is not a strict count of physical seconds — a detail that matters for astronomy but almost never for application code. All conversions here run instantly and entirely in your browser; nothing you enter is transmitted or stored anywhere.
Timestamp conversion examples
A few well-known epoch values and what the converter reports for them.
| Timestamp | UTC date | Note |
|---|---|---|
| 1000000000 | 2001-09-09 01:46:40 (UTC) | The billennium — Unix time crossed one billion seconds in September 2001. |
| 1234567890 | 2009-02-13 23:31:30 (UTC) | A famous milestone celebrated by programmers in 2009. |
| 1712345678901 | 2024-04-05 19:34:38 (UTC) | Thirteen digits, so auto-detect treats it as milliseconds. |
| 2147483647 | 2038-01-19 03:14:07 (UTC) | The largest signed 32-bit value — the moment of the Year 2038 problem. |
How to convert a Unix timestamp
- Paste the timestamp into the timestamp field. Leave the unit on auto-detect — ten-digit values are read as seconds and thirteen-digit values as milliseconds — or force a unit if you need to.
- Click Convert to see the ISO 8601 string, the UTC time, your local time with its UTC offset, and a relative description of the moment.
- Click Now to fill the field with the current timestamp instead of typing it.
- To go the other way, pick a date and time in the date field and click Convert to timestamp to get epoch seconds and milliseconds.
- Copy whichever representation your database query, API call, or log search needs.
Unix timestamp FAQ
What is a Unix timestamp?
It is the number of seconds elapsed since midnight UTC on 1 January 1970 (the Unix epoch), not counting leap seconds. It is a compact, timezone-independent way to represent a moment in time, used by virtually every operating system, database, and API.
How do I tell seconds from milliseconds?
By length: current timestamps in seconds have 10 digits, while millisecond timestamps have 13. The converter's auto-detect mode uses exactly this magnitude test, and you can override it with the unit selector when working with historical or far-future values where the heuristic could guess wrong.
Are Unix timestamps affected by timezones?
No. A timestamp identifies one absolute instant, identical everywhere on Earth. Timezones only matter when you render it as a calendar date, which is why this tool shows both the UTC form and your local form with the offset made explicit.
What is the Year 2038 problem?
Systems that store Unix time in a signed 32-bit integer cannot represent moments after 03:14:07 UTC on 19 January 2038, when the counter overflows. Modern software avoids it by using 64-bit integers or millisecond counts, but legacy embedded systems remain at risk.
Can a timestamp be negative?
Yes. Negative values represent moments before the 1970 epoch — for example, -86400 is 31 December 1969 at midnight UTC. The converter handles negative input in both seconds and milliseconds.
Which timezone is used for the date-to-timestamp direction?
The date and time you pick are interpreted in your browser's local timezone, the same way an HTML form treats them. The resulting epoch seconds and milliseconds are absolute, so converting them back will show your original wall-clock time in the local line.