Epoch Time Humanizer (Unix Timestamp Converter)
Paste a Unix timestamp such as 1738428734 and see it as local time in your browser's time zone, as UTC and as ISO 8601. In Auto mode the tool says whether it read the number as seconds or milliseconds, so a wrong guess is visible instead of silent. Fractional seconds and negative values (dates before 1970) work. The second panel goes the other way: pick a local date and time and get epoch seconds and milliseconds. Nothing is sent anywhere; the conversion runs in your browser.
How to Convert an Epoch Timestamp
- Type or paste a number into Epoch Value, or press Use Now to fill in the current time.
- Leave Units on Auto, or choose Seconds or Milliseconds. The line under the field says which unit was used.
- Read Local Time, UTC Time and ISO 8601, then use Copy ISO or Copy UTC.
- To go the other way, set Local Date and Time and read Epoch Seconds and Epoch Milliseconds.
How Auto Tells Seconds From Milliseconds
The rule: Auto reads a value whose integer part, ignoring the sign, is from 100,000,000,000 to 99,999,999,999,999 as milliseconds, and anything smaller as seconds. As seconds, 100,000,000,000 is the year 5138; as milliseconds it is March 3, 1973. Auto misreads only millisecond timestamps between late October 1966 and early March 1973, and seconds values past the year 5138 or before about 1200 BC. Choose the unit by hand for those.
Limits: A JavaScript date holds at most 8.64e15 milliseconds either side of 1970-01-01, about the year 275760, so larger values are rejected with a message. So are numbers beyond 9,007,199,254,740,991, which JavaScript cannot store exactly. Microsecond and nanosecond timestamps are not converted. In Auto, a value of 100,000,000,000,000 or more gets a message instead of a guess, which catches microseconds from March 1973 on; nanoseconds from mid April 1970 on have too many digits. Both messages say to divide by 1,000 or 1,000,000 first.
Wall-clock time and daylight saving: The date panel reads your input in the browser's time zone. On a spring-forward night a skipped time such as 02:30 moves ahead an hour, and on a fall-back night a repeated time uses its first occurrence, which is how ECMA-262 defines it. Epoch Seconds is whole seconds; Epoch Milliseconds is exact.