Calculators & Time

Unix Timestamp Converter

The current Unix time, live. Convert epoch seconds, milliseconds, micro- or nanoseconds to a date and back, with code for 9 languages.

The current Unix time, live. Convert epoch seconds, milliseconds, micro- or nanoseconds to a date and back, with code for 9 languages.

What you can do

  • The current Unix timestamp, live, in seconds and milliseconds, one click to copy.
  • Paste any timestamp: seconds, milliseconds, microseconds or nanoseconds are detected automatically. Date text works too.
  • Local time, UTC, ISO 8601 and "3 hours ago" style relative time.
  • Copy-ready code to get and convert Unix time in JavaScript, Python, PHP, Go, Java, C#, PostgreSQL, MySQL and Bash.

Part of IONIAN's Calculators & Time tools — Use math, percentage, ETA, temperature, timing, and measurement helpers.

Frequently asked questions

What is a Unix timestamp?

The number of seconds since 1 January 1970 00:00:00 UTC (the Unix epoch), not counting leap seconds. It is the same everywhere in the world at a given moment, which is why databases and APIs use it to store time.

Is my timestamp in seconds or milliseconds?

Count the digits. Today a timestamp in seconds has 10 digits, in milliseconds 13, microseconds 16 and nanoseconds 19. JavaScript Date.now() returns milliseconds; most Unix tools, PHP time() and Python int(time.time()) return seconds. This converter detects the unit for you.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC (timestamp 2147483647) and wrap to 1901. Modern systems use 64-bit integers, which last for billions of years, but old databases and embedded devices may still need fixing.

Free to use, no sign-up. Need a custom version or a full build? IONIAN Digital ships production software, websites, and MVPs — start a project.