unix time, without the guesswork

Every timestamp.
One answer.

Paste an epoch value or a date and see seconds, milliseconds, UTC, local time and any timezone — instantly, and entirely in your browser.

  • No requests
  • No tracking
  • Any unit
  • Any timezone
epoch — now

date +%s

0 seconds

date +%s%3N

0 ms

— —
ready
Try

Conversions happen locally — nothing you type leaves this page.

date → timestamp

quick reference

MomentUnix (s)UTC

Boundaries use the timezone selected above. The week starts on Monday.

code

Get the current timestamp in your language

Short, correct snippets with the live epoch filled in. No framework required.

now = — · snippets update with the current timestamp

now.js
const nowSeconds = Math.floor(Date.now() / 1000);
const nowMillis  = Date.now();

console.log(nowSeconds, nowMillis);

explainer

What is a Unix timestamp?

A Unix timestamp — also called epoch time — is the number of seconds since 1970-01-01T00:00:00 UTC. It is timezone-free: the same number describes the same instant everywhere on Earth. Only when you format it does a zone matter.

Computers like it because it is a single integer that sorts, subtracts and stores cleanly. Humans like it less, which is why this page exists.

Seconds or milliseconds?

Count the digits. Ten digits is seconds and lands between 2001 and 2286. Thirteen digits is milliseconds — the same range divided by 1000. Sixteen digits is microseconds, nineteen is nanoseconds. This converter detects the unit for you and tells you what it assumed, so you never have to guess.

Negative timestamps

Yes, they work: -1 is one second before the epoch, 1969-12-31T23:59:59Z. Dates before 1970 are perfectly valid Unix time.

faq

Does Unix time account for leap seconds?

No. Unix time treats every day as exactly 86,400 seconds. Leap seconds are smeared or ignored, which is why a Unix timestamp can be a second or so away from astronomical UTC.

Why does my timestamp show 1970?

Almost always a unit mix-up: you passed milliseconds where seconds were expected, so the value is interpreted as a date a thousand times too early — or the reverse, landing you in the far future.

Is my input sent anywhere?

No. Detection, conversion and formatting all run in this page using your browser's own timezone data. Nothing is uploaded, logged or stored.

What is the Year 2038 problem?

Systems that store Unix time in a signed 32-bit integer overflow on 2038-01-19 at 03:14:07 UTC, when the counter passes 2,147,483,647. Check a value here.

Can I share a conversion?

Yes — the URL updates as you type, so copying the address bar (or the Copy link button) restores the timestamp, unit and timezone.

advertisement