Epoch / Unix Timestamp Converter
Convert Unix epoch timestamps to UTC and local human dates. Features real-time clock ticker, seconds/milliseconds auto-detection, and relative time calculations.
Convert Unix Epoch Timestamp to Date & Time
Detected: seconds (10 digits)Convert Human Date & Time to Unix Timestamp
Get Current Unix Epoch in Programming Languages
Math.floor(Date.now() / 1000) // seconds Date.now() // milliseconds
import time int(time.time()) # seconds int(time.time() * 1000) # milliseconds
date +%s # seconds date +%s%3N # milliseconds
import "time" time.Now().Unix() // seconds time.Now().UnixMilli() // milliseconds
time(); // seconds (int)(microtime(true) * 1000); // milliseconds
import java.time.Instant; Instant.now().getEpochSecond(); // seconds System.currentTimeMillis(); // milliseconds
DateTimeOffset.UtcNow.ToUnixTimeSeconds(); DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
use std::time::{SystemTime, UNIX_EPOCH};
SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs();-- PostgreSQL SELECT extract(epoch from now()); -- MySQL SELECT UNIX_TIMESTAMP();
Step-by-Step Instructions
Enter Unix Epoch Timestamp or Datetime
Input a Unix timestamp in seconds (10 digits) or milliseconds (13 digits), or pick a human calendar date.
Select Timezone
View conversions in Universal Coordinated Time (UTC / GMT) or your local device timezone.
Inspect Multi-Format Datetime Outputs
Review instant conversions across ISO 8601 (`YYYY-MM-DDTHH:mm:ssZ`), RFC 2822, Relative Time ('2 hours ago'), and Julian Day.
Copy Formatted Date or Timestamp
Copy the timestamp integer or formatted date string for your database queries, logs, and backend APIs.
Key Features & Capabilities
- Bidirectional conversion: Unix Epoch Seconds/Milliseconds $\leftrightarrow$ Human Readable UTC and Local Datetime
- Real-time live Unix Epoch clock updating continuously with millisecond precision
- Multi-standard output formats: ISO 8601, RFC 2822, RFC 3339, SQL Datetime (`YYYY-MM-DD HH:MM:SS`), Unix Milliseconds
- Year 2038 Problem (Y2K38) 32-bit vs 64-bit integer signed overflow timeline calculator
Frequently Asked Questions
What is Unix Epoch Time and how is it defined?
Unix Epoch Time (POSIX time) is the number of seconds that have elapsed since **00:00:00 UTC on January 1, 1970** (the Unix Epoch), excluding leap seconds. It is the universal standard used across Linux, Unix, databases, and network protocols to represent time as a single integer.
How do you distinguish between timestamps in seconds versus milliseconds?
Timestamps in **seconds** are currently **10 digits long** (e.g., `1710000000` for year 2024), standard in Python, PHP, and PostgreSQL. Timestamps in **milliseconds** are **13 digits long** (e.g., `1710000000000`), standard in JavaScript (`Date.now()`) and Java (`System.currentTimeMillis()`).
What is the Year 2038 Problem (Y2K38)?
On **January 19, 2038 at 03:14:07 UTC**, 32-bit signed integers storing Unix time will reach their maximum value ($2^{31} - 1 = 2,147,483,647$). The next second, the integer will overflow into negative numbers, resetting clocks to December 13, 1901. Modern 64-bit operating systems and databases prevent this, extending timestamp capacity for over 292 billion years.
How do leap seconds affect Unix timestamp calculations?
Unix time intentionally ignores leap seconds: every day is treated as containing exactly 86,400 seconds. When an official leap second is added by the IERS, Unix clocks either repeat second 86,399 or apply 'leap smearing' across hours to prevent step discontinuities.
Related Utilities
Discover complementary online tools in the same workflow.
Unix Timestamp to Date Converter
Convert Unix epoch timestamps to human-readable dates (UTC, Local, ISO-8601) and vice versa.
JSON Formatter & Validator
Format, beautify, minify, validate, and view JSON data online with instant syntax highlighting and error detection.
Base64 Encoder & Decoder
Encode text or binary data into Base64 format or decode Base64 back into raw string format.
CSV to JSON Converter
Easily convert CSV data to clean JSON format. Turn tabular spreadsheets into structured JSON.
YAML to JSON Converter
Convert YAML configuration files into structured JSON for APIs and modern web tooling.
JWT Parser & Token Debugger
Decode JWT tokens to view header, payload claims, and expiration status without sending secrets anywhere.