Unix Timestamp Converter (Epoch to Date)

Turn a Unix timestamp from a log, database or API into a readable date, or get the timestamp for a date and time.

Current Unix time:

UTC
India (IST)
Your local time
Seconds
Milliseconds
ISO 8601
Relative

Runs entirely in your browser. Nothing you enter is sent anywhere.

How it works

A Unix timestamp counts seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. JavaScript and many IoT platforms use milliseconds instead; the converter treats values with 13 or more digits as milliseconds.

Timestamps have no time zone, so the same number is shown in UTC, Indian Standard Time and your browser's local time zone.

date = 1970-01-01T00:00:00Z + timestamp seconds
milliseconds = seconds × 1000

Worked example

The timestamp 1700000000 is 14 November 2023, 22:13:20 UTC, which is 15 November 2023, 03:43:20 IST. The same moment in milliseconds is 1700000000000.

Frequently asked questions

What is the year 2038 problem?

Systems that store timestamps as signed 32-bit integers overflow at 03:14:07 UTC on 19 January 2038. Modern systems use 64-bit timestamps, but check older embedded firmware and databases.

How do I get the current timestamp in code?

JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). Linux shell: date +%s.

Related tools