Skip to content

Unix timestamp converter

Turn epoch timestamps into readable dates, and dates back into timestamps.

Updated

Current Unix time

1793357832

Read as seconds. That's now.

Unix seconds
1793357832
Milliseconds
1793357832000
ISO 8601
2026-10-30T10:57:12.000Z
UTC
Fri, 30 Oct 2026 10:57:12 GMT
Local time
Friday, October 30, 2026 at 10:57:12 AM UTC

How to convert a timestamp

  1. Paste a Unix timestamp, or type a date like 2024-05-01T12:00:00Z.
  2. The unit is detected from the number of digits; choose one yourself if it guesses wrong.
  3. Read the result in UTC, ISO 8601 and your local time, or pick a date to get its timestamp.
  4. Copy any format with one click.

Timestamp units at a glance

UnitDigits todayExampleUsed by
Seconds101700000000Unix, PHP, Python time.time()
Milliseconds131700000000000JavaScript, Java
Microseconds161700000000000000PostgreSQL, Go
Nanoseconds191700000000000000000Go, InfluxDB

Getting the current timestamp in code

LanguageSeconds
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
Gotime.Now().Unix()
PHPtime()
Shelldate +%s
SQL (PostgreSQL)extract(epoch from now())

Common uses

  • Reading a timestamp in a log. Paste an epoch value from a log file, database row or API response to see when it happened, in UTC and in your local time.
  • A timestamp for a test or job. Pick a date and time to get its Unix timestamp for a test fixture, a cache expiry or a scheduled job.
  • Agreeing a time across time zones. Turn a timestamp into ISO 8601 and UTC to share an exact moment with colleagues in other time zones.

Questions

What is a Unix timestamp?

The number of seconds since 00:00:00 UTC on 1 January 1970, the “Unix epoch”. It's the same everywhere in the world, which is why computers use it to store and compare times.

Is my timestamp in seconds or milliseconds?

Count the digits. A current timestamp in seconds has 10 digits (like 1700000000); in milliseconds it has 13, as JavaScript's Date.now() returns. The converter detects this automatically, and you can override it.

What happens in 2038?

Systems that store the timestamp as a signed 32-bit number overflow on 19 January 2038 at 03:14:07 UTC. Modern systems use 64-bit numbers, which last for billions of years.

Which date formats can I convert?

ISO 8601 (2024-05-01T12:00:00Z), dates with a time zone offset, and most formats a browser understands. Dates without a time zone are read as your local time.

All converters →