Unix Timestamp Converter

Epoch time to a date and back, in seconds, milliseconds, microseconds or nanoseconds, in any time zone.

Input a Timestamp such as 1733212800, or a date such as 2024-12-03 08:00
Output
Runs locally · nothing is uploaded

Online Unix timestamp converter

Paste an epoch timestamp from a log, a database row or an API response and see the date it stands for, in UTC, in your own time zone and in any other. Or type a date and get its Unix timestamp. Seconds, milliseconds, microseconds and nanoseconds are told apart by their number of digits, and 19-digit nanosecond timestamps keep every digit.

Features

How to convert a Unix timestamp

  1. Paste the timestamp into Input, or press Now for the current time.
  2. Check the unit next to Input. If Auto picked the wrong one, choose it under Unit.
  3. Pick a Zone to see the date there. Each value has its own Copy button; Ctrl/⌘ + Shift + C copies the main one.

Which unit is my timestamp in?

DigitsUnitExampleTypical source
10Seconds1733212800Unix date +%s, Python time.time(), JWT exp
13Milliseconds1733212800123JavaScript Date.now(), Java System.currentTimeMillis()
16Microseconds1733212800123456PostgreSQL, Python time.time_ns() // 1000
19Nanoseconds1733212800123456789Go UnixNano(), OpenTelemetry, InfluxDB

Frequently asked questions

What is a Unix timestamp?

A Unix timestamp (epoch time) is the number of seconds since 1 January 1970 00:00:00 UTC, not counting leap seconds. It is the same everywhere in the world, so it has no time zone; the zone only matters when you show it as a date.

Is my timestamp in seconds, milliseconds, microseconds or nanoseconds?

Count the digits. Today's timestamps have 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. The converter detects the unit this way, and you can choose it by hand.

What is the year 2038 problem?

Systems that store Unix time in a signed 32-bit integer overflow after 2147483647, which is 2038-01-19 03:14:07 UTC, and wrap around to 1901. Software using 64-bit timestamps is not affected.

How do I convert a date to a Unix timestamp?

Type or paste the date, for example 2024-12-03 08:00:00 or 2024-12-03T08:00:00Z. If the date has no offset, it is read in the time zone you choose. The timestamp is shown in seconds, milliseconds, microseconds and nanoseconds.

Can a negative Unix timestamp be converted?

Yes. Negative timestamps are dates before 1970; for example -86400 is 1969-12-31 00:00:00 UTC.

Is my data safe?

Yes. The conversion runs in your browser with time zone data that is part of the page. Nothing you type is sent to a server or stored.