Developer

Unix Timestamp Converter

Convert epoch time in seconds or milliseconds to a readable date in any time zone, and dates back to timestamps.

Current Unix time (at page load) seconds 1793456273 milliseconds 1793456273198 2026-10-31T14:17:53.198Z

Timestamp to date

Date to timestamp

Seconds, milliseconds, micro and nano

  • 10 digits (e.g. 1767225600): seconds, used by Unix, PHP, Python and most databases.
  • 13 digits (e.g. 1767225600000): milliseconds, used by JavaScript Date.now() and Java.
  • 16 digits: microseconds; 19 digits: nanoseconds (Go, some logs).
  • A Unix timestamp counts from 1 January 1970 00:00:00 UTC and is the same everywhere; only how it's displayed depends on the time zone.

Unix Timestamp Converter: frequently asked questions

What is a Unix timestamp?

It is the number of seconds since 1 January 1970 00:00:00 UTC (the Unix epoch). It is the same everywhere in the world; only how it is shown depends on the time zone.

How do I tell seconds from milliseconds?

Count the digits. Current timestamps have 10 digits in seconds and 13 in milliseconds (16 for microseconds, 19 for nanoseconds). The converter detects this automatically.

How do I get the current Unix timestamp?

It is shown at the top of this page. In code: Math.floor(Date.now() / 1000) in JavaScript, time.time() in Python, time() in PHP, or date +%s in a terminal.

How do I convert a date in IST to a timestamp?

Use Date to timestamp: enter the date and time, choose Asia/Kolkata as the time zone, and convert. You get the timestamp in seconds and milliseconds.

More Developer tools