Browser tool
Unix Timestamp & Epoch Converter
Read a Unix timestamp as a date, or turn a date into seconds and milliseconds. Times are shown in your browser’s timezone and in UTC.
- Local time
- —
- UTC time
- —
- ISO 8601
- —
- Unix seconds
- —
- Unix milliseconds
- —
Times use your browser’s timezone and UTC. Nothing is sent anywhere.
Epoch time and Unix timestamps
A Unix timestamp — also called epoch time, POSIX time, or a Unix epoch — counts the seconds since 1 January 1970 at 00:00 UTC. Seconds are the usual unit; JavaScript and many APIs use milliseconds. Leap seconds are not represented.
Local time and daylight saving
The date input is interpreted in this browser’s timezone, including daylight-saving rules. Two people in different timezones can enter the same date and get different timestamps.
Reading the number correctly
A 10-digit value such as 1700000000 is seconds; a
13-digit value such as 1700000000000 is
milliseconds. Auto mode switches at 100,000,000,000, so pick Seconds or Milliseconds
yourself when a value sits near that boundary or comes from a source you do not control.
Values with a leading minus sign are read as dates before 1970. The field accepts whole
numbers only: a decimal fraction, a unit suffix such as 1700000000s,
or an already formatted date is rejected instead of guessed.
Worked examples
0→ 1 January 1970, 00:00:00 UTC86400→ 2 January 1970, 00:00:00 UTC1700000000→ 14 November 2023, 22:13:20 UTC1700000000000→ the same instant, read as milliseconds
The local-time row depends on the browser’s timezone, so the same timestamp can land on a different calendar date for someone in another part of the world.
Where timestamps come from, and the usual mistakes
Logs, APIs, databases, and mobile apps all use Unix time, but they do not always agree on
the unit. JavaScript’s Date uses milliseconds, Unix
command-line tools and most APIs use seconds, and some systems store microseconds or
nanoseconds, which this page does not support. A timestamp records an instant, not a
timezone: the original offset is lost, so 09:00 in Tokyo and 09:00 in New York are
different numbers. When you compare a value with a log line, check whether the log wrote
UTC or local time before assuming the clock is wrong. The ISO 8601 row is always UTC with
a Z suffix, which is the safest form to copy into
code or a database.
Unix time also ignores leap seconds: every day is treated as exactly 86,400 seconds, so a value near a leap-second boundary can differ from a UTC clock by one second. On 32-bit systems, signed seconds run out on 19 January 2038; 64-bit systems are not affected. If a recent event shows a 1970 date, the field is usually missing or a millisecond value was read as seconds.
Related tools
The next step in the same task — and still nothing leaves this browser.