Skip to content
HNarzędzia
en
Categories

Unix timestamp converter - epoch time to date and back

See the current epoch time ticking live, paste any timestamp to get the date in your time zone, UTC, ISO 8601 and HTTP format, or pick a date to get its timestamp in seconds and milliseconds.

  • Free
  • No sign-up
  • Private
  • Runs locally

Current Unix timestamp

Seconds
-
Milliseconds
-

Timestamp → date

Date → timestamp

How to convert a Unix timestamp

  1. 1.

    Paste the timestamp

    Enter a value such as 1767225600 or 1767225600000. The unit (s, ms, µs, ns) is detected from the number of digits.

  2. 2.

    Read the date

    You get local time with your time zone, UTC, ISO 8601, the HTTP date format and a relative description such as “3 months ago”.

  3. 3.

    Convert a date back

    In “Date → timestamp”, pick a date and time, choose local time or UTC, and copy the result in seconds or milliseconds.

What a Unix timestamp is

A Unix timestamp (epoch time, POSIX time) is the number of seconds elapsed since 1 January 1970, 00:00:00 UTC, ignoring leap seconds. The same moment has the same timestamp everywhere in the world - the time zone only matters when you display it as a date.

Timestamp (s)Date (UTC)
01 January 1970, 00:00:00
1,000,000,0009 September 2001, 01:46:40
1,700,000,00014 November 2023, 22:13:20
1,767,225,6001 January 2026, 00:00:00
2,147,483,64719 January 2038, 03:14:07

Example: 1,767,225,600 is midnight UTC on 1 January 2026, which is 19:00 on 31 December 2025 in New York (EST, UTC-5) and 09:00 on 1 January in Tokyo (UTC+9).

Seconds or milliseconds?

Unix systems, PHP (time()), Python (int(time.time())) and most databases use seconds - 10 digits for current dates. JavaScript (Date.now()) and Java (System.currentTimeMillis()) return milliseconds - 13 digits. Go and some logging systems use nanoseconds. The converter guesses the unit from the magnitude: below 1011 it is seconds, below 1014 milliseconds, below 1017 microseconds, above that nanoseconds. You can also pick the unit manually.

  • JavaScript: Math.floor(Date.now() / 1000)
  • Bash: date +%s, and back with date -d @1767225600 (GNU) or date -r 1767225600 (macOS)
  • PostgreSQL: SELECT extract(epoch FROM now()) and to_timestamp(1767225600)
  • MySQL: UNIX_TIMESTAMP() and FROM_UNIXTIME(1767225600)

ISO 8601, HTTP dates and time zones

For APIs and JSON, use ISO 8601 in UTC: 2026-01-01T00:00:00.000Z, where “Z” means UTC. It is unambiguous, sorts correctly as text and is parsed by every language. HTTP headers such as Expires and Last-Modified use the RFC 7231 format: Thu, 01 Jan 2026 00:00:00 GMT. Both are shown with a copy button.

When converting a date to a timestamp, decide whether the date you typed is local time or UTC - the difference is your UTC offset, and daylight saving time changes it twice a year in most of Europe and North America.

The year 2038 problem

When a timestamp is stored as a signed 32-bit integer, its maximum value is 2,147,483,647 - 19 January 2038, 03:14:07 UTC. One second later the counter overflows to a negative number and the date jumps back to 13 December 1901. Modern operating systems and languages use 64-bit timestamps, which last for billions of years, but the problem still affects older embedded devices, some file formats and database columns declared as 32-bit INT. Need date arithmetic rather than raw timestamps? Try the days between dates calculator.

Frequently asked questions

What is the current Unix timestamp?

+
The current value in seconds and milliseconds is shown at the top of the tool and updates every second. Copy it with one click.

Does a Unix timestamp depend on the time zone?

+
No. It is always counted from UTC. The time zone only affects how the date is displayed: the same timestamp is 12:00 UTC, 13:00 in London in summer and 08:00 in New York.

How do I tell seconds from milliseconds?

+
For current dates a timestamp in seconds has 10 digits (1767225600) and in milliseconds 13 digits (1767225600000). The converter detects this automatically.

Can a timestamp be negative?

+
Yes. Negative values are dates before 1 January 1970: -86400 is 31 December 1969, 00:00 UTC.

What is ISO 8601?

+
The international date-time format, e.g. 2026-01-01T00:00:00.000Z, where Z means UTC. It is unambiguous, sorts alphabetically and is recommended for APIs and JSON.

Are leap seconds counted?

+
No. Unix time treats every day as exactly 86,400 seconds, so leap seconds are not reflected in the count.

Updated: