Skip to content
Raisalon

Developer tool

Unix Timestamp Converter

Convert Unix timestamps in seconds or milliseconds to readable UTC and local dates, and convert dates back to timestamps, with live current time.

Current Unix time

—

Timestamp to date

Date to timestamp

How to use it

The panel at the top shows the current Unix time, updated every second. Below it:

  • Timestamp to date converts a number into a UTC date in ISO 8601 format, a local date in your browser’s time zone, and a relative description such as “3 days ago”.
  • Date to timestamp converts a local date and time into seconds and milliseconds since the epoch.

By default the converter detects the unit automatically. Values with an absolute value of 100,000,000,000 or more are treated as milliseconds, because as seconds they would describe dates thousands of years in the future. Choose Seconds or Milliseconds explicitly if you need to override the guess.

What a Unix timestamp is

A Unix timestamp counts the seconds that have elapsed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. Because it is a single number with no time zone, it is a convenient way to store and compare moments in time.

Different systems use different units:

Source Unit Example
Unix date +%s, Python time.time() Seconds 1767225600
JavaScript Date.now(), Java Milliseconds 1767225600000
Many databases and log formats Seconds or ms varies

Mixing up the two units is a common bug: a millisecond value read as seconds lands tens of thousands of years in the future, while a seconds value read as milliseconds lands in January 1970.

Time zones

A timestamp identifies an instant, not a wall-clock time. The same instant is displayed differently in each time zone, which is why the converter shows both UTC and your local time. When storing dates, keep them in UTC (or as timestamps) and convert to local time only for display.

The year 2038 problem

Systems that store Unix time in a signed 32-bit integer can only represent times up to 03:14:07 UTC on 19 January 2038, which is timestamp 2147483647. After that moment the value overflows. Modern platforms use 64-bit integers, but embedded devices and old file formats may still be affected.

Everything on this page is calculated in your browser.

More tools

  • Developer

    JSON Formatter and Validator

    Format, minify, validate, and sort JSON in your browser, with error messages that point to the exact line and column of a syntax problem.

    Open tool

  • Developer

    Base64 Encoder and Decoder

    Encode text to Base64 or decode Base64 back to text, with full UTF-8 support and an optional URL-safe alphabet for tokens and URLs.

    Open tool

  • Machine learning

    Classification Metrics Calculator

    Calculate accuracy, precision, recall, F1, specificity, balanced accuracy, and Matthews correlation coefficient from a binary confusion matrix.

    Open tool