Timestamp Converter

Convert timestamps and build custom Python-style datetime formats.

On your device. Your input is not uploaded or saved.

Current Unix seconds—

Timestamp → date

Auto-detect treats magnitudes of 100 billion or more as milliseconds. For dates near the epoch or far in the future, select the unit explicitly.

Date → timestamp

Local timezone: local timezone. During a daylight-saving overlap, the earlier occurrence is used. UTC avoids that ambiguity.

Python datetime format builder

Write a strftime template or insert tokens from the guide. Literal text is preserved.

Format guide · click a token to insert it at the cursor

Names and locale formats use English. %f prints six digits with the final three zero because browser dates have millisecond precision. %Z uses the browser’s timezone name; it may differ from Python on another system. Platform-specific flags are not supported. Python format reference (new tab)

How to convert a Unix timestamp to a date

  1. Enter a Unix timestamp, such as 1700000000, under Timestamp → date. Press Use now to start from the current time.
  2. Leave Input unit on Auto-detect, or choose Seconds or Milliseconds when you know the unit.
  3. Read the result as Unix seconds, Unix milliseconds, UTC (ISO 8601) and your local time. Each value has a copy button.
  4. To convert the other way, enter a date and time under Date → timestamp and choose whether it is in your local timezone or UTC.
  5. To format any of these dates, write a Python strftime template in the format builder below.

Seconds or milliseconds?

Unix time counts from 1970-01-01 00:00:00 UTC. Most APIs, databases and the date +%s command use seconds, while JavaScript's Date.now() and Java's System.currentTimeMillis() use milliseconds, which have three more digits. Auto-detect treats any value of 100 billion or more as milliseconds, so 1700000000 is read as seconds (November 2023) and 1700000000000 as milliseconds.

For dates close to 1970 or far in the future, choose the unit yourself. Negative values give dates before 1970, and decimals are accepted.

Timezones and daylight saving time

A timestamp is the same moment everywhere; only its display changes. The tool shows UTC alongside the timezone your browser reports. When you convert a date back, a local time that does not exist because clocks moved forward shows an error, and during the repeated hour when clocks move back, the earlier occurrence is used. Choose UTC to avoid that ambiguity.

Python datetime format builder

Write a strftime template such as %Y-%m-%d %H:%M:%S%z, or click a token in the guide to insert it at the cursor. Presets cover ISO-style, readable and file-name formats, and you can format the current time, the timestamp input or the date input in UTC or local time.

The directives follow Python's datetime.strftime with English month and day names. Browser dates have millisecond precision, so %f always ends in 000, and %Z shows the timezone name your browser uses, which can differ from Python on another system.

Where does my data go?

Everything is calculated in your browser using your device's clock and timezone settings. The tool does not upload or save what you enter.

Like the rest of the site, this page uses Google Analytics and Yandex Metrica, including Metrica session replay. Tool events report only that the tool was opened or used.

The tool area is marked so that Metrica masks what you type and the results in its session recordings.

Also useful

No third-party trackers on JZR Tools. We count anonymous visits with country, referring site and device type only.