ByteBox / Tools / Epoch Converter

Unix Timestamp & Epoch Converter

Convert Unix timestamps to human-readable date/time formats and vice-versa in real-time.

Last updated: Aug 25, 2026
Current Unix Epoch Time
1719300000
Timestamp → Human Date Epoch to Date
Format (RFC 2822) -
ISO 8601 / UTC -
Local Time -
Relative Time -
Day of Year -
Human Date → Timestamp Date to Epoch
Seconds (Unix) -
Milliseconds (JS) -
Microseconds (μs) -
Nanoseconds (Go/Rust) -
Batch Timestamp Converter

Paste multiple timestamps (one per line, comma-separated, or inside logs). We'll convert them all at once.

How to Get the Current Epoch Timestamp in Any Language

JavaScript / Node.js
Math.floor(Date.now() / 1000) // seconds
Date.now() // milliseconds
Python
import time
int(time.time()) # seconds
PHP
time(); // seconds
microtime(true); // with microseconds
Go (Golang)
time.Now().Unix() // seconds
time.Now().UnixMilli() // ms
Rust
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap().as_secs();
Bash / Shell
date +%s # seconds
date +%s%3N # milliseconds

What is Unix Epoch Time?

The Unix epoch (or POSIX time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970 (excluding leap seconds). It is the universal standard for representing timestamps in operating systems, databases (PostgreSQL, MySQL, MongoDB), APIs, and file systems because it provides an unambiguous, timezone-agnostic numerical value.

Seconds vs. Milliseconds vs. Microseconds

  • Seconds (10 digits): Standard Unix timestamp used in Linux, Python time.time(), PHP time(), and SQL UNIX_TIMESTAMP(). Example: 1719300000.
  • Milliseconds (13 digits): Standard format used in JavaScript Date.now(), Java System.currentTimeMillis(), and MongoDB ObjectId timestamps. Example: 1719300000000.
  • Microseconds (16 digits) & Nanoseconds (19 digits): High-precision timestamps used in Go, Rust, C++ high-resolution clocks, and tracing systems.

The Year 2038 Problem (Y2K38)

On January 19, 2038 at 03:14:07 UTC, 32-bit signed integers will overflow because they cannot store values greater than 2,147,483,647. Modern 64-bit systems handle timestamps up to 292 billion years into the future, completely resolving the limitation.