Unix Timestamp Converter

Convert a Unix epoch timestamp to a human date, or a date and time to a timestamp, in UTC or your local time.

Runs in your browser — nothing is uploaded
—Current Unix time (seconds)
—Milliseconds

Timestamp → date

Date → timestamp

About the Unix Timestamp Converter

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have passed since 1 January 1970 at 00:00:00 UTC. Databases, log files, APIs and programming languages use it because it is a single number that means the same moment everywhere in the world.

This converter turns a timestamp into a readable date in both UTC and your own time zone, and shows how long ago (or how far ahead) it is. It detects whether you pasted seconds, milliseconds, microseconds or nanoseconds from the number of digits. It also works the other way: pick a date and time to get its timestamp. The live clock at the top shows the current Unix time.

How to use the Unix Timestamp Converter

  1. Paste a timestamp into the Timestamp → date box. The unit is detected automatically, or you can choose it.
  2. Read the date in UTC, in your local time and in ISO 8601 format.
  3. To go the other way, pick a date and time and choose whether it is your local time or UTC.
  4. Copy the result with the copy buttons.

How the conversion works

Timestamp → dateDate = 1970-01-01 00:00:00 UTC + timestamp seconds
Date → timestampTimestamp = (date in UTC − 1970-01-01 00:00:00 UTC) in seconds
Millisecondsms = seconds × 1000

Example timestamps

Timestamp (seconds)Date and time (UTC)
01 Jan 1970, 00:00:00
10000000009 Sep 2001, 01:46:40
170000000014 Nov 2023, 22:13:20
17040672001 Jan 2024, 00:00:00
214748364719 Jan 2038, 03:14:07 (largest signed 32-bit value)

Seconds or milliseconds?

Present-day timestamps have 10 digits in seconds (used by Unix, PHP and Python’s int(time.time())) and 13 digits in milliseconds (used by JavaScript’s Date.now() and Java). Microseconds have 16 digits and nanoseconds 19.

Frequently asked questions

What is the Unix epoch?

The Unix epoch is 00:00:00 UTC on 1 January 1970. Unix time counts the seconds since that moment. Dates before it have negative timestamps.

Do Unix timestamps depend on the time zone?

No. A timestamp marks the same instant everywhere. Only the way it is displayed changes: the same timestamp shows a different clock time in London and in Karachi.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit integer can only count up to 2,147,483,647, which is 03:14:07 UTC on 19 January 2038. After that the number overflows. Modern systems use 64-bit values, which last for billions of years.

Does Unix time include leap seconds?

No. Unix time treats every day as exactly 86,400 seconds and ignores leap seconds, so it can be off from atomic time by a few seconds. For everyday dates this makes no difference.

Last updated: