Unix timestamp converter

Convert Unix timestamps in seconds, milliseconds or microseconds to dates in UTC, IST or any time zone, and back. Everything runs in your browser; nothing is uploaded.

Current Unix time: …
Or pick a date and time (India (IST, UTC+5:30))

How to use it

  • Have a timestamp? Paste it in the box. 10 digits are read as seconds, 13 as milliseconds, 16 as microseconds.
  • Have a date? Pick it with the date and time selectors, or type it as 2026-10-14 09:30 or 14/10/2026. It is read in the time zone you choose.
  • Need a common value? Tap Now, Start of today or Start of this month, then nudge it with ±1 hour, day or week.

Timestamps in code

  • JavaScript: Math.floor(Date.now() / 1000) gives seconds; Date.now() gives milliseconds.
  • Python: int(time.time())
  • MySQL: UNIX_TIMESTAMP() and FROM_UNIXTIME(1760430000)
  • Shell: date +%s

Questions

What is a Unix timestamp?

The number of seconds since 00:00:00 UTC on 1 January 1970. It is the same everywhere in the world, which makes it a safe way to store times.

Why is my date off by 5 hours 30 minutes?

The timestamp is in UTC and India Standard Time is UTC+5:30. Pick Asia/Kolkata in the time zone list to see IST.

Seconds or milliseconds?

Most APIs, JWTs and databases use seconds (10 digits today). JavaScript and Java use milliseconds (13 digits). Mixing them up gives dates in 1970 or far in the future.

What happens in 2038?

Systems that store seconds in a signed 32-bit integer overflow on 19 January 2038. Use 64-bit integers for timestamps to avoid it.

More tools