Home / Developer tools / Unix timestamp converter

Unix Timestamp Converter

Convert a Unix timestamp to a readable date, or a date to a timestamp, in any time zone. Seconds, milliseconds, microseconds and nanoseconds are detected for you, and the current Unix time is always on screen.

Current Unix timestamp (seconds)

1793746712
Milliseconds1793746712000
UTC (ISO 8601)2026-11-03T22:58:32Z
Your local timeTue, 03 Nov 2026 22:58:32 UTC
Until the 2038 limit353,736,935 seconds

Timestamp to date

Try:

Everything runs in your browser. Your data is not sent to our server.

Date to timestamp

Try:

Everything runs in your browser. Your data is not sent to our server.

What a Unix timestamp is

A Unix timestamp (also called epoch time or POSIX time) is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is one plain number, it has no time zone, and it is the same everywhere in the world at the same moment. That is why databases, APIs, log files, JWT tokens and programming languages use it to store a point in time.

Unix timestampDate and time (UTC)
01970-01-01 00:00:00
10000000002001-09-09 01:46:40
17000000002023-11-14 22:13:20
18000000002027-01-15 08:00:00
21474836472038-01-19 03:14:07 (the 32-bit limit)

How this converter works

The top panel shows the current Unix time and keeps ticking. Below it, Timestamp to date turns a number into a date in the time zone you choose, and Date to timestamp does the reverse. Both run in your browser, so nothing you type is uploaded.

With the unit set to Auto, the size of the number decides the unit:

Value (absolute)Read asTypical digitsCommon source
below 100 billionSeconds10Unix time(), PHP, Python, JWT, Stripe
100 billion to 100 trillionMilliseconds13JavaScript Date.now(), Java, Kafka
100 trillion to 100 quadrillionMicroseconds16Cassandra writetime, Python datetime in µs
above thatNanoseconds19Go UnixNano(), InfluxDB, tracing systems

A millisecond value from the first three years after 1970 is shorter than 11 digits and would be read as seconds. If you know your data is in milliseconds, set the unit yourself. See the page for milliseconds to date for details.

Useful durations in seconds

PeriodSeconds
1 minute60
1 hour3600
1 day86400
1 week604800
30 days2592000
365 days31536000

Adding 86400 to a timestamp moves it forward by 24 hours, which is not always "the same time tomorrow" in a time zone that changes its clocks.

Get the current Unix timestamp in code

// JavaScript
Math.floor(Date.now() / 1000)

# Python
import time; int(time.time())

// PHP
time();

// Java
Instant.now().getEpochSecond();

// C#
DateTimeOffset.UtcNow.ToUnixTimeSeconds();

// Go
time.Now().Unix()

# Ruby
Time.now.to_i

# Shell (Linux, macOS)
date +%s

More languages, with the reverse conversions, are on the current Unix timestamp and timestamp to date pages.

Common mistakes

  • Mixing seconds and milliseconds. A 13-digit value read as seconds lands tens of thousands of years in the future. A 10-digit value read as milliseconds lands in January 1970.
  • Reading a timestamp as local time. The number is UTC based. Only the display depends on the time zone.
  • Storing 32-bit integers. They stop at 2147483647, which is 19 January 2038. Use 64-bit fields. The Unix time guide explains the problem.
  • Doing date maths on local times. Add or subtract in UTC, and convert to a time zone only when you show the result.

Next: epoch converter (other epochs such as Windows FILETIME), date to timestamp, and the guide What is Unix time?. Timestamps also appear in tokens: the JWT claims builder creates exp and iat values.

Frequently asked questions

What is a Unix timestamp?

The number of seconds since 1 January 1970 00:00:00 UTC. It identifies one moment in time and has no time zone.

How do I convert a Unix timestamp to a date?

Paste the number into Timestamp to date. The date appears at once in the time zone you choose, with the ISO 8601 form, the UTC time and a relative time.

How do I know if a timestamp is in seconds or milliseconds?

Count the digits. Ten digits is seconds, thirteen is milliseconds. With the unit on Auto this page decides for you.

Is a Unix timestamp the same in every time zone?

Yes. The number is the same everywhere. Only the clock time you display from it changes with the time zone.

What happens in 2038?

A signed 32-bit timestamp cannot go past 2147483647, which is 19 January 2038 at 03:14:07 UTC. Systems that use 64-bit values are not affected.