webutilkit

Unix Timestamp Converter

Convert a Unix timestamp to a readable date, or a date to a timestamp, in your browser.

How it works

A number is parsed as a Unix timestamp — seconds or milliseconds since January 1, 1970 UTC, detected by its length — and converted to a JavaScript date. Anything else is handed to the browser’s own date parser, which understands ISO 8601 and most common written date formats.

Seconds vs. milliseconds

Unix timestamps were traditionally measured in seconds, which is what date +%s and most server-side languages still use by default. JavaScript’s own Date.now() uses milliseconds instead, so this tool detects which one you have from the number of digits and labels the result accordingly.

Reading the output

ISO 8601 and UTC are timezone-independent, so they mean the same thing everywhere. The “Local” row shows the same instant in your browser’s own timezone, and “Relative” describes roughly how far that moment is from right now.

Frequently asked questions

How does it know if a number is seconds or milliseconds?

By its length: a 10-digit number is treated as seconds since the Unix epoch, and a 13-digit number as milliseconds. That covers every real timestamp between the 1970s and the year 5138.

What date formats can I type in?

Anything your browser’s built-in date parser accepts, including ISO 8601 (2024-01-15), and most common written forms like "Jan 15 2024".