Convert Unix timestamps to readable dates and back, in seconds or milliseconds, with ISO, UTC and local output.
Enter the number you have into the timestamp box. If it is about ten digits long it is in seconds, and if it is about thirteen digits long it is in milliseconds.
Switch between seconds and milliseconds to match your source. Getting this wrong is the usual reason a date lands in 1970 or thousands of years into the future.
You get ISO 8601 for APIs, a UTC string for logs, your own local time for sanity checking, and a plain relative phrase such as three days ago. Each one has its own copy button.
It is the number of seconds that have passed since the first of January 1970 at midnight UTC, known as the Unix epoch. Because it is a single number with no timezone attached, it is the usual way systems exchange a moment in time.
Count the digits. A ten digit number is seconds and covers dates around now. A thirteen digit number is milliseconds, which is what JavaScript's Date.now returns. Choosing the wrong unit is the most common mistake.
You almost certainly have a millisecond value being read as seconds, or an empty or zero value. Zero seconds is exactly the epoch, so a missing timestamp very often displays as the first of January 1970.
ISO 8601 and UTC are both in UTC, with no offset applied. The local line uses your device's own timezone and locale, so it is the right one to check against what a user would actually see.
Systems that store the timestamp in a signed 32-bit integer overflow in January 2038. Modern platforms use 64-bit values and are unaffected, but it is still worth checking old integrations and database column types.
Yes. Use the date to timestamp box, pick a date and time, and you get both the seconds and the milliseconds value with a copy button on each.
No. All conversion uses the browser's own date handling. Nothing you enter leaves your device and the tool keeps working offline.
Yes, completely free with no sign-up, like every tool in the Pinkontin developer toolbox.
Convert between binary, octal, decimal, hexadecimal and any base up to 36, including very large integers.
Open ToolFree online JSON formatter and validator. Format, minify and validate JSON with syntax highlighting and instant error detection.
Open ToolOnline UUID v4 and v7 generator, free. Bulk generation with uppercase and no-dash formatting. Cryptographically secure and generated in your browser.
Open Tool