Unix Timestamp Converter
Paste a Unix timestamp and see it as a date: ISO 8601 in UTC, your local time and any time zone you pick, with the weekday, the ISO week number, the day of the year and a relative description such as "3 days ago". The tool works out whether the number is in seconds, milliseconds, microseconds or nanoseconds from its size, and you can override that guess.
Going the other way, choose a date, a time and a time zone and get the timestamp in seconds and milliseconds. Daylight saving time is handled carefully: a clock time that does not exist, or that happens twice, is flagged instead of being converted silently. A live display shows the current Unix time. Everything runs in your browser.
Current Unix time
Timestamp to date
Date to timestamp
What a Unix timestamp is
A Unix timestamp counts the time since 00:00:00 UTC on 1 January 1970, called the Unix epoch. Most systems store it as a number of seconds, though JavaScript and many APIs use milliseconds, and some databases and tracing tools use microseconds or nanoseconds. Because the count starts from a fixed instant in UTC, a timestamp means the same moment everywhere. Only when you show it as a calendar date do you need a time zone.
Guessing the unit from the size of the number works well in practice: a current timestamp has about 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. The tool treats numbers below 100 billion as seconds, below 100 trillion as milliseconds, and so on. A small number that is really in milliseconds, such as one from the early 1970s, looks like seconds, so use the unit selector when the date looks wrong.
Time zones come from the IANA database that your browser carries, so rules for daylight saving time follow what your browser knows. Negative timestamps are dates before 1970. A signed 32-bit seconds counter overflows on 19 January 2038 at 03:14:07 UTC, and the tool tells you when a value is past that point. Browsers can represent dates only up to about 275,760 AD, and values beyond that are reported as out of range.
- Seconds, milliseconds, microseconds and nanoseconds, detected automatically or chosen by you.
- ISO 8601 in UTC, UTC string, your local time and any IANA time zone.
- Relative time, weekday, ISO week number and day of the year.
- Date and time to timestamp, with daylight-saving gaps and overlaps flagged.
- Handles 0, negative timestamps, the 2038 boundary and out-of-range values with clear messages.
- A live current Unix time that screen readers do not announce every second.
How to use the Unix Timestamp Converter
- Type or paste a timestamp, or press Use the current time.
- Check the detected unit, and change it if the date looks wrong.
- Pick a time zone to see the same moment on its clock.
- To go the other way, fill in the date, the time and the zone in the second section.
Is it private?
Yes. All conversions happen in your browser with its built-in date and time zone support. Nothing you enter is uploaded or stored.
Read our tools privacy policy →
Frequently asked questions
How does the tool know if my timestamp is in seconds or milliseconds?
From its size. Up to 11 digits is read as seconds, 12 to 14 digits as milliseconds, 15 to 17 as microseconds and longer numbers as nanoseconds. Dates before about 1973 written in milliseconds look like seconds, so use the unit selector when the result is clearly wrong.
Why does the result depend on the time zone but the timestamp does not?
A Unix timestamp counts seconds since a fixed instant in UTC, so it names one moment for everybody. The calendar date and clock time of that moment differ by zone, which is why the tool shows UTC, your local time and any zone you choose.
What happens with times that do not exist or happen twice because of daylight saving?
When clocks jump forward an hour, a time inside the skipped hour does not exist. The tool tells you and uses the moment just after the jump. When clocks go back, a time in the repeated hour happens twice. The tool uses the first one and shows the later one as the alternative.
Can I convert negative timestamps or dates before 1970?
Yes. A negative timestamp is a moment before 1 January 1970 UTC, and the tool shows its date. Very large values outside the range a browser can hold, about 271,821 BC to 275,760 AD, are rejected with a message.
What is special about 2038?
Systems that store the timestamp in seconds as a signed 32-bit integer cannot go past 2147483647, which is 19 January 2038 at 03:14:07 UTC. The tool points this out for larger values, because such systems would fail on them.
Are my values uploaded or stored?
No. Conversions run in your browser, using its built-in time zone data. Nothing you type is uploaded or stored.