Current epoch — epochtime.tools · A precision instrument for time

Epoch & Unix timestamp converter

Convert epoch time to anything readable. A precise developer-focused converter with full IANA timezone support, relative time, Y2038 detection, and shareable URLs. All conversions happen in your browser. Nothing is sent to a server.

Press / to jump here, N for now
Accepts seconds (10 digits), milliseconds (13), microseconds (16), nanoseconds (19), ISO 8601, RFC 2822, or natural dates ·
Y2038 boundary This timestamp is within range of the Year 2038 overflow. Systems storing time as a signed 32-bit integer will fail at 2038-01-19 03:14:07 UTC. Use 64-bit timestamps for dates near or after this boundary. Learn more →
—
Now
Your time
Seconds —
Milliseconds —
Microseconds —
Nanoseconds —
ISO 8601 —
RFC 2822 —
UTC —
Local —
Relative —
Current epoch sec — ms — µs —

Start and end of the day, week, month and year

The first and last second of each period that contains your timestamp, in the timezone you picked. Use them for range queries such as WHERE ts BETWEEN start AND end.

PeriodStart (seconds)End (seconds)
Enter a timestamp above.

Seconds to duration, and back

Turn a number of seconds into days, hours and minutes, or paste an ISO 8601 duration such as PT1H30M to get the seconds.

Seconds—
Breakdown—
d hh:mm:ss—
ISO 8601 duration—
In minutes · hours · days—

Years and months are left out on purpose: their length varies, so a fixed number of seconds can't be turned into them exactly.

Paste anything. Get everything.

The input box auto-detects what you've pasted: seconds, milliseconds, microseconds, ISO 8601, RFC 2822, or natural date strings. Output updates as you type.

Time formats developers run into.

A quick reference for the formats you'll see in databases, logs, APIs, and browser code.

Unix Time

Seconds since 1970-01-01 00:00:00 UTC. Timezone-independent integer. 10 digits for current dates. The universal format for databases, logs, and APIs.

Milliseconds

Used by Date.now() in JavaScript, System.currentTimeMillis() in Java, and many web APIs. 13 digits for current dates. Multiply seconds × 1000.

ISO 8601

Human-readable format: 2026-05-15T14:30:00Z. The Z means UTC. Used in REST APIs, structured logs, and anywhere you need date + time as text.

More timestamp tools.

Other utilities for working with epoch time, timezones, and date arithmetic.

Common questions.

Practical answers for developers working with epoch time, time zones, and timestamp arithmetic.

Why does Unix time start in 1970?
When Unix was being developed at Bell Labs in the late 1960s, the engineers needed a simple, compact way to represent time. The first edition (1971) counted sixtieths of a second from 1 January 1971, which wrapped a 32-bit counter in about 2.5 years. Later editions counted whole seconds from a round, recent date, 1970-01-01 00:00:00 UTC. The convention stuck and became standard across every major operating system and programming language.
How do I tell if a value is seconds or milliseconds?
Count the digits. A 10-digit number is almost certainly seconds (year ~2001 to 2286). A 13-digit number is almost certainly milliseconds. 16 digits is microseconds. This converter auto-detects based on digit count.
What is the Y2038 problem?
A signed 32-bit integer maxes out at 2,147,483,647, which corresponds to 2038-01-19 03:14:07 UTC. After that second, systems still using 32-bit time overflow to a negative value, jumping back to 1901. Modern systems use 64-bit timestamps, which won't overflow for billions of years. Read more →
How do I get the current Unix timestamp in code?
JavaScript: Math.floor(Date.now() / 1000)
Python: int(time.time())
Bash: date +%s
Go: time.Now().Unix()
PHP: time()
Rust: SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs()
Does this tool send my timestamps to a server?
No. All conversion happens in your browser using native JavaScript and the Intl API. Nothing is logged, transmitted, or stored. Refresh the page and your input is gone (unless it's in the URL, which is by your choice).
Why use IANA timezones instead of UTC offsets?
Timezones like America/New_York account for daylight saving time changes automatically. A fixed offset like UTC-5 doesn't. It's wrong for half the year in regions that observe DST. Use IANA names whenever you can.

Last updated: