No upload to server Fast Free

Unix Timestamp Converter (Epoch Time)

Convert between Unix timestamps and human dates in seconds, milliseconds, microseconds, or nanoseconds — with a live clock, batch converter, and UTC + local + ISO output, all in your browser.

1792150687
100% in-browser — every conversion runs on your device. Nothing is sent anywhere — verify in DevTools’ Network tab.

Timestamp → date

Date → timestamp

Batch convert

Paste timestamps one per line — the unit of each is auto-detected.

TL;DR

A Unix timestamp is seconds since 1970 — paste one above and this tool detects its unit automatically and shows the date in UTC, your local time, ISO 8601, and RFC 2822. Use the Date → timestamp panel to go the other way, or the batch converter for a whole column of timestamps at once.

What is a Unix timestamp?

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on Thursday, 1 January 1970 — a moment called the Unix epoch. For example, the timestamp 1760620000 means exactly 1,760,620,000 seconds after the epoch. Because it counts from one fixed reference point, a timestamp describes the same instant everywhere on Earth: it is completely timezone-independent, which is why databases, APIs, and log files love it.

The catch is readability — no human looks at 1760620000 and sees “October 2026”. That is what this converter is for: paste any timestamp and it instantly becomes a date you can read, in every common format. It works entirely in your browser, with no signup and no data ever leaving your device.

Seconds, milliseconds, microseconds, nanoseconds — which is it?

The single most confusing thing about epoch time is the unit. Different platforms picked different precisions, and a timestamp in the wrong unit looks like nonsense (milliseconds read as seconds point to the year 57700). The reliable rule is digit counting:

UnitDigitsUsed byExample
Seconds10Python time.time(), PHP time(), MySQL UNIX_TIMESTAMP(), JWT exp claims1760620000
Milliseconds13JavaScript Date.now(), Java System.currentTimeMillis(), MongoDB1760620000123
Microseconds16PostgreSQL timestamptz internals, some log pipelines1760620000123456
Nanoseconds19Go UnixNano(), high-frequency trading clocks1760620000123456789

This converter applies that rule automatically — paste a timestamp of any length and it tells you which unit it detected. If it ever guesses wrong (a very old 10-digit seconds value and a truncated 10-digit millisecond value can look alike), the unit dropdown lets you override it by hand.

How to get the current timestamp in your language

Every mainstream language has a one-liner. Copy the one you need:

Python (seconds, float)
import time
time.time()          # e.g. 1760620000.123
int(time.time())     # integer seconds
JavaScript (milliseconds)
Date.now()                     // e.g. 1760620000123
Math.floor(Date.now() / 1000)  // seconds
Java (milliseconds)
System.currentTimeMillis()        // e.g. 1760620000123
System.currentTimeMillis() / 1000  // seconds
Go (seconds / nanoseconds)
time.Now().Unix()      // seconds
time.Now().UnixMilli() // milliseconds
time.Now().UnixNano()  // nanoseconds
PHP (seconds)
time();  // e.g. 1760620000

What about negative timestamps and the Year 2038 problem?

Timestamps before 1 January 1970 are simply negative — -2208988800 is 1 January 1900, for example. This converter handles them correctly, so historical dates are no problem.

The famous Year 2038 problem is the mirror image: a signed 32-bit integer tops out at 2,147,483,647 seconds, which lands on Tuesday, 19 January 2038 at 03:14:07 UTC. One second later it overflows back to 1901. In 2026 this mostly threatens 32-bit embedded systems, old file formats, and legacy databases — modern 64-bit platforms store epoch time with room to spare for hundreds of billions of years, so your laptop and phone are safe.

Why this converter beats a search-engine snippet

Typing a timestamp into a search box gives you one date in one timezone, once. This converter gives you UTC, your local time, ISO 8601, and RFC 2822 at a glance, converts whole batches in one paste, works offline-friendly in a single page, and never sends your data anywhere. For developers debugging JWT expiry claims or log timestamps, the auto-detect alone saves a surprising amount of squinting.

Related developer tools

Pair this with ToolsOfWeb's JWT Decoder — token exp, iat and nbf claims are Unix timestamps in seconds — the UUID Generator for v7 time-ordered IDs whose embedded timestamps you can read here, or the JSON Formatter to pretty-print API responses containing epoch values.

FAQs

What is a Unix timestamp?+

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on Thursday, 1 January 1970 — a moment called the Unix epoch. For example, 1760620000 means 1,760,620,000 seconds after the epoch. It is timezone-independent: the same timestamp means the same instant everywhere on Earth.

What is the current Unix time?+

The live clock at the top of this page shows the current Unix timestamp ticking every second, in both seconds and milliseconds. You can copy it with one click. Refresh any time to see the value right now.

How do I convert a timestamp to a date?+

Paste the timestamp into the "Timestamp → date" panel — the tool auto-detects whether it is in seconds, milliseconds, microseconds, or nanoseconds, and shows the UTC date, your local time, the ISO 8601 form, the RFC 2822 form, and a relative time like "3 hours ago".

How do I convert a date to a timestamp?+

Use the "Date → timestamp" panel: pick a date and time, choose whether it should be interpreted as your local time or UTC, and the tool instantly gives the epoch value in seconds, milliseconds, microseconds, and nanoseconds.

Seconds vs milliseconds — how do I tell which unit a timestamp is in?+

Count the digits: 10 digits means seconds, 13 means milliseconds, 16 means microseconds, 19 means nanoseconds. A 10-digit value like 1760620000 is seconds (a human date); a 13-digit value like 1760620000123 is milliseconds. This converter detects the unit automatically, or you can override it manually.

What is the Year 2038 problem?+

On Tuesday, 19 January 2038 at 03:14:07 UTC, the maximum value of a signed 32-bit integer (2,147,483,647 seconds) runs out. Systems that still store time in 32-bit integers will overflow and jump back to 1901. In 2026 this matters mainly for 32-bit embedded systems and old file formats; 64-bit systems store timestamps far beyond the year 292 billion and are safe.

Do Unix timestamps handle timezones?+

A Unix timestamp itself has no timezone — it always refers to one exact instant worldwide. Timezones only appear when you display it: the same timestamp shows as different wall-clock times in Karachi, London, or New York. That is why this converter shows UTC and your local time side by side.

Does Unix time account for leap seconds?+

No. By definition, Unix time treats every day as exactly 86,400 seconds, so leap seconds are not represented — a leap second simply reuses the timestamp of the second before it. This means Unix time drifts very slightly from true astronomical time, but it keeps the math simple and predictable.

How do I convert a Unix timestamp in Excel?+

In Excel or Google Sheets, use =(A1/86400)+25569 and format the cell as a date. (Excel counts days since 1 January 1900, so 25569 is the offset to the Unix epoch, and 86400 is seconds per day.) Note this only works for second-precision timestamps — divide millisecond values by 1000 first.

How do I convert a Unix timestamp in MySQL?+

Use FROM_UNIXTIME(1760620000) to turn a timestamp into a datetime, and UNIX_TIMESTAMP(“2026-10-16 12:00:00”) to go the other way. MySQL's FROM_UNIXTIME returns the time in the server's timezone unless you wrap it with CONVERT_TZ.

More free tools

Want guides and tips? Visit the ToolsOfWeb blog or go back to the homepage.