Toolbox/Unix Timestamp Converter — Epoch to Date
Runs locally
TIME & DATES

Unix & Epoch timestamp converter

Convert Unix or Epoch timestamps to dates, turn dates into timestamps, and compare seconds, milliseconds and UTC—all in your browser.

RIGHT NOW

Current Unix time

Device time · updates once a second

Copying pauses this display so the number you copy stays visible. Based on your device clock; this is not a synchronized time service.

Auto mode treats absolute values below 100 billion as seconds. For historical or distant dates, choose the unit explicitly.

YOUR RESULT

ISO 8601 · UTC
Unix seconds
Unix milliseconds
Input interpreted as
Calculated on your device
A LITTLE CONTEXT

What is a Unix timestamp?

A Unix timestamp measures time from January 1, 1970 at 00:00:00 UTC. Many APIs use whole seconds; JavaScript dates use milliseconds. A timestamp represents an instant, while a timezone changes how that instant is displayed.

milliseconds = seconds × 1,000

References: MDN: JavaScript Date

Good to know

Seconds or milliseconds?

Modern Unix timestamps are commonly 10 digits in seconds or 13 in milliseconds. Digit count is a heuristic, not a universal rule. Select the unit explicitly when you know the source.

Why does the date change with the timezone?

The underlying instant stays the same. Displaying 1700000000 gives 2023-11-14 22:13:20 UTC, or 2023-11-14 17:13:20 in New York. Daylight saving rules depend on the date and timezone.

Can I convert a date before 1970?

Yes. Negative timestamps describe instants before the Unix epoch. Select seconds or milliseconds explicitly when necessary. Leap seconds are not represented by JavaScript Date.

What precision is supported?

Timestamp input uses whole seconds or milliseconds. Date input supports up to three fractional second digits. Values outside the JavaScript Date range are rejected.

PRACTICAL REFERENCE

Epoch to date, and date to Unix timestamp

Use one explicit instant to check your units. For the reverse direction, select Date to timestamp above and enter an ISO date with Z or an offset. For example, 2023-11-14T22:13:20Z returns 1700000000 seconds and 1700000000000 milliseconds.

One instant, four representations
RepresentationValue
Unix seconds1700000000
Unix milliseconds1700000000000
ISO 8601 · UTC2023-11-14T22:13:20.000Z
New York · UTC−05:00 on this date2023-11-14 17:13:20

JavaScript: current Unix time

const milliseconds = Date.now();
const seconds = Math.floor(milliseconds / 1000);

JavaScript: epoch to a UTC date

new Date(1700000000 * 1000).toISOString();
// 2023-11-14T22:13:20.000Z

Python: current Unix time

import time
seconds = int(time.time())

Python: timezone-aware UTC date

from datetime import datetime, timezone
datetime.fromtimestamp(1700000000, tz=timezone.utc).isoformat()
# 2023-11-14T22:13:20+00:00

Milliseconds in a timestamp locate an instant; milliseconds in a duration measure elapsed time. This converter handles instants. Named timezone displays follow your browser’s timezone database. A fixed offset such as −05:00 does not change itself for daylight saving time.

Find a tool

Unix timestampTime & datesPX ↔ REMCSS & layoutBase64 encode / decodeEncodingBase64 to imageImages & files