Unix Timestamp Converter

Convert Unix timestamps to dates and back.

Current Unix timestamp

Timestamp to date

Timestamp converted to dates
Date and time
ISO 8601
UTC
Relative
Milliseconds

Date to timestamp

Date converted to timestamps
Unix timestamp
Milliseconds
ISO 8601
Get the timestamp in code
PHP          time();  date('Y-m-d H:i:s', $ts);
JavaScript   Math.floor(Date.now() / 1000);  new Date(ts * 1000);
Python       import time; int(time.time())
MySQL        SELECT UNIX_TIMESTAMP();  SELECT FROM_UNIXTIME(ts);
Linux shell  date +%s;  date -d @ts

Use this tool on EWD Labs

This copy of the tool can't run here. Open the original, free version instead.

Open Unix Timestamp Converter

Runs in your browser. Nothing you type is uploaded.

How to use the Unix timestamp converter

  1. The current Unix time updates every second at the top. Copy it, pause it, or press Convert it.
  2. Paste any timestamp into Timestamp to date. Seconds, milliseconds, microseconds and nanoseconds are detected from the number of digits.
  3. Pick a date and time in Date to timestamp to get its Unix timestamp.
  4. Change the time zone to see the same moment anywhere in the world. It starts on your device's zone.

What is a Unix timestamp?

A Unix timestamp, also called epoch time, is the number of seconds since 00:00:00 UTC on January 1, 1970. It is the same everywhere in the world at the same moment, which is why servers and databases use it to store time.

Date = January 1, 1970 00:00 UTC + Timestamp seconds

Worked example

  • 1767225600 is January 1, 2026 at 00:00:00 UTC.
  • In India (UTC+05:30) the same moment is January 1, 2026 at 05:30:00.
  • In milliseconds, as JavaScript uses, it is 1767225600000.

Frequently asked questions

What is a Unix timestamp?

It is the number of seconds since midnight UTC on January 1, 1970. Servers, databases and programming languages use it because it is the same everywhere at the same moment.

Is my timestamp in seconds or milliseconds?

A 10-digit number is seconds and a 13-digit number is milliseconds. The converter detects this for you, including microseconds and nanoseconds.

Which time zone is used?

Your device's time zone, to start with. Pick any other zone from the list to see the same moment there.

What happens in 2038?

Systems that store timestamps in a signed 32-bit number overflow on January 19, 2038. Modern 64-bit systems, PHP 7 and later, and JavaScript are not affected.