Epoch Converter — Free Epoch to Date Converter

Epoch time, also known as Unix time, counts seconds elapsed since 1970-01-01T00:00:00Z — the origin defined by the early Unix operating system at Bell Labs. As of May 2026, the value is approximately 1746400000. This format appears in HTTP headers, JWT token claims (exp, iat), server log files, database timestamps, and file system metadata. Because it is a single integer anchored to UTC, the same value represents the exact same instant everywhere — no timezone conversion needed at the storage layer. For the authoritative date-time string format built on top of epoch time, see RFC 3339. This converter auto-detects seconds (10-digit) and milliseconds (13-digit) — paste any epoch value and the UTC date, local time, ISO 8601 string, and relative time appear instantly. Runs entirely client-side — your timestamps never leave your device.

What is Epoch Time?

Epoch time — also called Unix time or POSIX time — is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC. This reference point is known as the Unix epoch.

Unix time is used in virtually every operating system, programming language, and database. It provides a single, unambiguous integer that represents a moment in time regardless of timezone or locale. Because it is timezone-neutral (always UTC), it is the preferred format for storing and transmitting timestamps across distributed systems.

Epoch values can be expressed in seconds (10-digit numbers) or milliseconds (13-digit numbers). JavaScript, for example, uses milliseconds by default via Date.now(), while most other languages use seconds.

How to Convert Epoch to Human Date

  1. Paste your timestamp into the input field in the converter below. You can enter any Unix timestamp in seconds or milliseconds.
  2. The tool detects the format automatically — no need to specify whether you have seconds or milliseconds. A 10-digit value is treated as seconds; 13-digit as milliseconds.
  3. Results appear instantly — you see the UTC date, local time, ISO 8601 format, relative time, and more without clicking any button.

Current Unix Timestamp

1777974230

Free — No Limits, No Signup

Convert

or

Results

UTC Time
Local Time
ISO 8601
Relative Time
Unix (seconds)
Unix (milliseconds)
Day of Week
Day of Year
Week Number
Is DST

Epoch to Date — How It Works

Converting epoch to date means translating a count of seconds since January 1, 1970 UTC into a recognizable calendar date and time. The process is straightforward: the tool takes your epoch value and divides it by 86 400 (the number of seconds in a day) to find the number of complete days that have elapsed since the Unix epoch. From that day count, it calculates the year, month, and day using standard calendar arithmetic.

The remaining seconds after subtracting the full-day offset are then broken down into hours, minutes, and seconds. Once the UTC time is determined, your browser's timezone offset is applied to produce the equivalent local time.

Both 10-digit (seconds) and 13-digit (milliseconds) epoch values are handled automatically — no manual selection needed. The result is displayed in three formats: UTC, local time, and ISO 8601, so you can copy whichever representation your project requires.

Epoch Time in Programming Languages

JavaScript

// Convert epoch seconds to ISO date string
new Date(1746400000 * 1000).toISOString()
// → "2026-05-05T00:26:40.000Z"

// Get current epoch in seconds
Math.floor(Date.now() / 1000)  // ~1746400000

Python

from datetime import datetime, timezone

# Convert epoch to UTC datetime
datetime.utcfromtimestamp(1746400000)
# → datetime(2026, 5, 5, 0, 26, 40)

# Get current epoch
import time; int(time.time())  # ~1746400000

Java

import java.time.Instant;

// Get current epoch seconds
Instant.now().getEpochSecond()

// Convert epoch to Instant
Instant.ofEpochSecond(ts)

PHP

// Get current epoch
time()

// Convert epoch to formatted date
date('Y-m-d H:i:s', $ts)

SQL (MySQL)

-- Convert epoch to readable datetime
SELECT FROM_UNIXTIME(1746400000);
-- → '2026-05-05 00:26:40'

-- Get current epoch
SELECT UNIX_TIMESTAMP();

Bash

# Get current epoch
date +%s

Go

import "time"

// Get current epoch seconds
time.Now().Unix()

// Convert epoch to Time
time.Unix(ts, 0)

Ruby

# Get current epoch
Time.now.to_i

# Convert epoch to Time
Time.at(ts)

Frequently Asked Questions

What is epoch time?

Epoch time is the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC. It is also called Unix time or POSIX time and serves as a universal reference for timestamps across all operating systems and programming languages.

What is epoch 0?

Epoch 0 corresponds to January 1, 1970 at 00:00:00 UTC. This moment is known as the Unix epoch start — the reference point from which all Unix timestamps are calculated.

Why does epoch start in 1970?

The Unix operating system was developed at Bell Labs in the late 1960s and early 1970s on the PDP-7 and PDP-11 computers. The year 1970 was chosen as a round, convenient starting point near the time the system was being created.

Is epoch time UTC?

Yes. Epoch time is always expressed in UTC (Coordinated Universal Time). It is timezone-neutral, which is one of the reasons it is so widely used for storing and exchanging timestamps across different systems and regions.

How to get the current epoch?

In JavaScript: Math.floor(Date.now() / 1000). In Python: int(time.time()). In Bash: date +%s. Most modern languages provide a built-in function to retrieve the current Unix timestamp.

Why does my epoch value have 13 digits not 10?

A 13-digit epoch value is in milliseconds, not seconds. JavaScript's Date.now() and Java's System.currentTimeMillis() return milliseconds by default. To convert to seconds, divide by 1000: Math.floor(Date.now() / 1000). This tool auto-detects the unit based on digit count.

What happens at epoch 2147483647?

Epoch 2147483647 is the maximum value for a 32-bit signed integer. It corresponds to January 19, 2038 at 03:14:07 UTC. After this moment, 32-bit systems that store Unix time will overflow — an issue known as the Year 2038 problem (Y2K38).

How accurate is JavaScript Date.now() for epoch time?

Date.now() is accurate to the millisecond in modern browsers, but resolution may be reduced to 1ms or coarser due to Spectre/Meltdown privacy mitigations. For cryptographic purposes use the Web Crypto API. Server-side, process.hrtime() in Node.js provides nanosecond resolution.

Convert epoch in MySQL: FROM_UNIXTIME or UNIX_TIMESTAMP?

Use FROM_UNIXTIME(epoch) to convert a stored integer to a human-readable DATETIME — e.g. SELECT FROM_UNIXTIME(1746400000) returns 2026-05-05 00:26:40. Use UNIX_TIMESTAMP(datetime) to go the other direction — from a DATETIME column back to epoch seconds.

How do I convert epoch to date?

Paste your epoch value into the converter above. The tool instantly shows the corresponding date in UTC, your local timezone, and ISO 8601 format. It also shows relative time (e.g. "3 years ago"), day of week, week number, and more. Click any Copy button to copy a single result.

Related Tools