Skip to main content
TestrHub home
Menu

Timestamp Converter

Convert Unix timestamps to dates and back, in seconds, milliseconds or more, in your time zone, UTC or any zone, with the unit explained.

Runs in your browser. Nothing is uploaded.

The current Unix timestamp

— seconds

— milliseconds

Read as

Paste a timestamp or type a date to convert it.

Converted in your browser: nothing is sent or saved.

What a Unix timestamp is

The number of seconds since 1 January 1970 at midnight UTC, the same everywhere on Earth at the same moment. Programs and databases use it because it does not depend on time zones or date formats. Many use milliseconds instead, which gives 13 digits instead of 10.

The year 2038 problem

Older systems store the timestamp in seconds as a 32-bit number, whose largest value, 2147483647, is reached on 19 January 2038 at 03:14:07 UTC. One second later, such a counter jumps back to 1901. Modern systems use 64 bits and are not affected.

Get the current timestamp in code

In seconds, except JavaScript, which counts in milliseconds.

JavaScript
Date.now()
Python
import time; int(time.time())
PHP
time()
SQL (PostgreSQL)
SELECT EXTRACT(EPOCH FROM now())::bigint;
SQL (MySQL)
SELECT UNIX_TIMESTAMP();
Shell
date +%s
PowerShell
[DateTimeOffset]::UtcNow.ToUnixTimeSeconds()

Results

What a Unix timestamp is

A Unix timestamp is the number of seconds since 1 January 1970 at midnight UTC. At any given moment it is the same everywhere on Earth, whatever the time zone or the date format, which is why programs, databases and logs use it. 1794061800, for example, is 7 November 2026 at 14:30 UTC.

This converter shows the current timestamp, live, and turns any timestamp into a date, or a date into a timestamp, in every form you might need. It runs in your browser: nothing is sent or saved.

The timestamp converter: the current timestamp at the top, the example 1794061800000 read as milliseconds as the note says, and the result in your time zone, UTC, Europe/London, from now, ISO 8601, RFC 2822, seconds, milliseconds, day and week, each with a Copy button.

On the screenshot, with an example:

  1. The current timestamp, live.
  2. How the input was read: here 13 digits, so milliseconds.
  3. Any time zone, chosen from the full list.
  4. The same moment from now, among the other forms.

Seconds or milliseconds?

The same moment can be written with different precision:

  • Seconds: 10 digits today, as in Unix, PHP, Python or most databases.
  • Milliseconds: 13 digits, as in JavaScript, Java and many web APIs.
  • Microseconds and nanoseconds: 16 and 19 digits, in some databases and system logs.

The converter reads the unit from the number of digits and says which one it chose. If it guessed wrong, for example with a very old date in milliseconds, choose the unit yourself. A wrong unit gives a date in 1970 or thousands of years away: a sure sign.

Time zones and summer time

The result appears in your time zone, in UTC, and in any other zone you choose from the full list. A date you type without a zone is read in your own; add Z for UTC, or an offset such as +01:00. When summer time applies on that date in a zone, the page says so: the same timestamp then shows an hour later on the clock.

Formats

  • ISO 8601, such as 2026-11-07T14:30:00.000Z: the standard for data and APIs. The Z means UTC.
  • RFC 2822, such as Sat, 07 Nov 2026 14:30:00 +0000: the format of email headers.
  • From now, such as “3 days ago” or “in 2 hours”: handy to read logs.
  • Day and week: the day of the week and the ISO week number, as used in planning.

The year 2038 problem

Many older systems store the timestamp in seconds as a signed 32-bit number. Its largest value, 2147483647, is reached on 19 January 2038 at 03:14:07 UTC; one second later, such a counter wraps around to December 1901. Modern systems use 64-bit numbers and are safe for billions of years, but old embedded devices and file formats may still be affected. Press “Convert 2147483647” to see the moment.

Frequently asked questions

Why does my timestamp give a date in 1970?

Because the number is too small for the unit it was read in. The usual case is a timestamp in seconds read as milliseconds: 1794061800 then lands on 21 January 1970 instead of 7 November 2026. It happens in JavaScript, which counts in milliseconds, when it is given seconds. The opposite mistake, milliseconds read as seconds, gives a date tens of thousands of years ahead. A date in 1970 can also be a small number that was never a timestamp, such as 0 or a duration. Choose another unit to check.

Do leap seconds count?

No. Unix time ignores leap seconds: every day has exactly 86,400 seconds, which keeps calculations simple.

Is anything sent anywhere?

No. The conversion uses your browser’s own clock and time zone data; only the time zone you chose is remembered in this browser.

Last updated: November 21, 2026

Guides about this test