Epoch Converter

Convert Unix Timestamp to Date

Input

Mode
Convert an epoch (Unix) timestamp to a human-readable date, or a date back to epoch time, in seconds or milliseconds. Shows UTC and your local time.

Terminal

Console ready. Execute a command to see output...

About Epoch Converter

What is epoch time?

Epoch time, also called Unix time, is the number of seconds since January 1, 1970, 00:00:00 UTC (the "Unix Epoch"). A 10-digit value is seconds, a 13-digit value is milliseconds: this epoch converter tells them apart by size and turns either one into a human-readable date, or a date back into an epoch timestamp.

Epoch time in code

The same conversion in common languages (1700000000 is 14 November 2023, 22:13:20 UTC):

JavaScript  Math.floor(Date.now() / 1000)                    // current epoch, seconds
            new Date(1700000000 * 1000).toISOString()        // "2023-11-14T22:13:20.000Z"
Python      int(time.time())                                 # current epoch, seconds
            datetime.fromtimestamp(1700000000, tz=timezone.utc)
Bash        date +%s                                         # current epoch, seconds
            date -u -d @1700000000                           # GNU date; macOS: date -u -r 1700000000
Excel       =A1/86400+DATE(1970,1,1)                         # A1 = seconds; format the cell as date/time (UTC)

The Year 2038 Problem

32-bit systems will run out of seconds on January 19, 2038. It is often called the next "Y2K". Most modern systems (64-bit) are already safe until the universe likely ends.

How to use Epoch Converter

  1. Pick the mode
    Timestamp → Date if you have a number, Date → Timestamp if you have a date string.
  2. Enter the value
    Timestamp: digits only (seconds or milliseconds). Date: any format JavaScript Date accepts (ISO 8601, short date, full string). Optional Set Local Time / Set UTC Time buttons prefill the current moment.
  3. Hit Convert
    Timestamp → Date shows ISO, UTC, and your local time. Date → Timestamp shows both seconds and milliseconds.
  4. Copy what you need
    Each line is selectable in the terminal panel. Match the format your downstream system expects.

Frequently Asked Questions

The number of seconds (or milliseconds, in some APIs) since midnight UTC on January 1, 1970. It is the standard way computers represent a point in time, language-agnostic, time-zone-free, easy to compare and do arithmetic on.