Unix Timestamp

Convert timestamps and dates

Loadingโ€ฆ

Was this tool helpful?

About this tool

This tool converts between a Unix timestamp and a human-readable date and time. It looks at how many digits you typed and treats 11 digits or fewer as seconds, 12 or more as milliseconds. For example, entering the field's placeholder value, 1700000000 (10 digits), is read as seconds and converts to 2023-11-14 22:13:20 UTC โ€” 2023-11-15 07:13:20 in Korean time.

How to use

  1. Type a number into the Unix timestamp field, or click 'set to now' to fill in the current time.
  2. Picking a date and time directly with the datetime-local input also updates the timestamp.
  3. Numbers with 11 digits or fewer are read as seconds; 12 digits or more are read as milliseconds.
  4. Below, you get seconds, milliseconds, ISO 8601 (UTC), Korean time, a UTC string, and the relative time from now, all at once.
  5. The live clock at the top shows the current Unix timestamp, refreshing every second.
  6. Create a room with 'play together' to share the timestamp and date you entered with someone else on the same screen.

Frequently asked questions

How does it tell seconds and milliseconds apart?
It goes by the digit count of what you type. 11 digits or fewer is treated as seconds and multiplied by 1000; 12 digits or more is treated as already being in milliseconds and used as-is.
What timezone is the ISO 8601 value in?
The ISO 8601 line is in UTC. The 'Korean time' line and the datetime-local input, on the other hand, are shown in whatever local timezone this browser is set to.
How is the relative time (e.g. "3 hours ago") calculated?
It takes the difference between the entered time and the current moment and rounds it to whichever unit โ€” seconds, minutes, hours, or days โ€” fits best. This value refreshes every second while the page is open.
Is the date/time I enter sent to a server?
No. Every conversion is computed with the browser's built-in Date object and never sent to a server.
Where do I see the timestamp for right now?
The live clock at the top of the page shows the current Unix timestamp and updates every second. Click 'set to now' to drop that value straight into the input field.
Can I look at the same timestamp with someone else?
Yes. Creating a room with 'play together' shares the timestamp and date/time you enter with everyone in the room. The live clock at the top (the current moment) is not shared โ€” it keeps ticking separately on each person's screen.
Is an 11-digit number read as seconds or milliseconds?
Anything with 11 digits or fewer is read as seconds. If you accidentally paste a millisecond value with 11 digits or fewer, it will be read as seconds and land on an unintended date far in the future โ€” double-check the digit count.
What happens if I enter something that is not a number or cannot be converted?
The result section simply does not appear. Instead of an error message, an empty result area tells you the input was not valid.
Does the 'Korean time' row change if I switch the page language?
No. The 'Korean time' row is always shown in Korea Standard Time regardless of the page language. The datetime-local input, on the other hand, follows whatever local timezone this browser is set to.

Similar tools