Unix Timestamp Converter

New

Convert Unix timestamps to readable dates, and dates back to timestamps, across time zones. Paste a timestamp in seconds, milliseconds, microseconds or nanoseconds; the unit is detected automatically. See the date in UTC, your own time zone and any other zones you add, or pick a date, time and zone to get its Unix timestamp.

Current Unix time

… seconds
… milliseconds

Timestamp to date

Date to timestamp

How to convert a timestamp to a date

  1. Paste the timestamp into Unix timestamp, or select Use current time.
  2. Keep Detect automatically, or choose the unit if you know it.
  3. Read the date in UTC, in your time zone, and in each zone in the list.

Add zones with Add a time zone, and remove them with ×. Your list of zones is remembered on this device.

How to convert a date to a timestamp

  1. Under Date to timestamp, choose the date and time.
  2. Choose the time zone the date and time are in. Your own zone is selected by default.
  3. Copy the Unix timestamp in seconds, or use the milliseconds or ISO 8601 value.

When clocks change for daylight saving time, some local times are skipped and others happen twice. The tool tells you when this happens and which moment it used.

What is Unix time?

Unix time, also called epoch time or POSIX time, counts the seconds since 1 January 1970 00:00:00 UTC, the Unix epoch. For example, 1700000000 is 14 November 2023, 22:13:20 UTC. A Unix timestamp is the same everywhere in the world; only its display depends on the time zone.

Unix time ignores leap seconds: every day has exactly 86,400 seconds. Dates before 1970 have negative timestamps.

Seconds, milliseconds, microseconds or nanoseconds?

Unit Digits today Example Used by
Seconds 10 1700000000 Unix and Linux, PHP time(), Python time.time(), most APIs and databases
Milliseconds 13 1700000000000 JavaScript Date.now(), Java System.currentTimeMillis()
Microseconds 16 1700000000000000 PostgreSQL, Python datetime internals, some logs
Nanoseconds 19 1700000000000000000 Go time.UnixNano(), InfluxDB, Prometheus

The tool detects the unit from the number of digits: up to 11 digits are read as seconds, up to 14 as milliseconds, up to 17 as microseconds, and longer numbers as nanoseconds.

Get the current Unix timestamp in code

date +%s                 # Linux and macOS, seconds
date -d @1700000000      # Linux: timestamp to date
date -r 1700000000       # macOS: timestamp to date
Math.floor(Date.now() / 1000);                  // JavaScript, seconds
new Date(1700000000 * 1000).toISOString();      // "2023-11-14T22:13:20.000Z"
import time, datetime
int(time.time())                                                   # seconds
datetime.datetime.fromtimestamp(1700000000, datetime.timezone.utc)  # timestamp to date
SELECT EXTRACT(EPOCH FROM now());   -- PostgreSQL
SELECT UNIX_TIMESTAMP();            -- MySQL

The year 2038 problem

Systems that store Unix time as a signed 32-bit integer can only count up to 2147483647, which is 19 January 2038, 03:14:07 UTC. One second later, the value overflows to a negative number and the date jumps back to 1901. Modern systems use 64-bit timestamps, which last for billions of years, but old embedded devices, file formats and databases can still be affected.

Frequently asked questions

Is a Unix timestamp in UTC or local time?

Neither, strictly: a Unix timestamp is a single moment, counted in seconds since 1970-01-01 00:00:00 UTC. It is the same in every time zone. Converting it to a date is when a time zone is applied.

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

Count the digits. Current timestamps have 10 digits in seconds and 13 in milliseconds. If a seconds timestamp shows a date in 1970, it was probably read as milliseconds, and if a milliseconds timestamp shows a year far in the future, it was read as seconds.

Why does my converted date differ by a few hours?

The timestamp was probably shown in a different time zone than you expected, or a local date was treated as UTC. Check which zone the date is in: the tool shows UTC, your own zone and any zones you add, each with its UTC offset.

Is my data sent to a server?

No. All conversions run in your browser using its built-in time zone database. Nothing is uploaded; only your list of time zones is saved on your device.

Further reading

Last updated:

© 2008–2026 XORBIN.COM. All rights reserved.