Unix Timestamp to Date Converter: Seconds & Milliseconds

Unix Timestamp to Date Converter: Seconds & Milliseconds

Convert a Unix timestamp in seconds or milliseconds to a date in UTC, your local time or another timezone, and turn a date back into epoch. Live clock.

Updated November 2026

Reviewed by Rafael Duarte

Unix to Human-Readable
EPOCH MODE
EPOCH TIMESTAMP
TIMEZONE
LOCAL TIME (GMT+00:00)

Tuesday, May 14, 2024 at 11:00:00 AM

UTC / GMT

Tuesday, May 14, 2024 at 11:00:00 AM

ISO 8601

2024-05-14T11:00:00.000Z

Human-Readable to Unix
DATE MODE
DATE & TIME
TIMEZONE

Select a date above.

CURRENT UNIX TIME Seconds
LIVE TRACKING
TIMEZONE

Coordinated Universal Time

Offset: GMT+00:00
EFFICIENCY

<0.1ms Response

NATIVE PERFORMANCE

Programmatic Usage

Quickly use timestamps in your code snippets.

# JavaScript

Math.floor(Date.now() / 1000); // seconds

Date.now(); // milliseconds

new Date(1715684400 * 1000)

.toISOString();

# Python

import time

int(time.time()) # seconds

from datetime import datetime

datetime.fromtimestamp(1715684400)

How to use this Unix timestamp converter

Works both ways, with the current epoch time always on screen

1. Paste a timestamp or pick a date

Type an epoch value in the Unix to Human-Readable panel, or pick a date and time (down to the minute) in the Human-Readable to Unix panel.

2. Choose the unit and timezone

Tick Seconds or Milliseconds yourself, since the tool does not guess the unit from the number of digits. Then pick the timezone the result should be shown in.

3. Copy the result you need

Local time, UTC and ISO 8601 appear at once, and each one has its own COPY button. On the date side, the Unix value has a Copy button and the ms and hex values copy when clicked.

What this timestamp to date converter does

Built for the checks developers run dozens of times a day

Live current Unix timestamp

The CURRENT UNIX TIME bar updates every second. Click the number to copy it, in seconds or milliseconds depending on the unit you picked.

Seconds and milliseconds

Switch between 10-digit seconds and 13-digit milliseconds with the radio buttons. The choice is manual, so match it to the value you paste.

Local time, UTC and ISO 8601 together

One conversion shows the date in your chosen timezone, in UTC and as an ISO 8601 string. The reverse panel also gives the value in ms and hex.

"Use Now" shortcut

Drops the current Unix time straight into the input and converts it immediately.

Timestamp conversion examples

How common epoch values map to readable dates

Timestamp
Date (UTC)
1712448000 (seconds)
April 7, 2024 — 00:00:00 UTC
0 (seconds)
January 1, 1970 — the Unix epoch
-86400 (seconds)
December 31, 1969 — 00:00:00 UTC
1712448000000 (ms)
April 7, 2024 — 00:00:00 UTC

When you'll reach for a timestamp converter

The situations that come up most for people using this tool

Debugging API responses

Fields like created_at and expires_at come back as raw Unix time — convert them on the spot while you debug.

Inspecting JWT tokens

The exp, iat and nbf claims are Unix seconds. Paste one here to see the exact date, or open the JWT decoder to read the whole token.

Reading logs across timezones

Line up events between services without running a query just to see what time something happened.

Writing database queries

Sanity-check stored records or build date-range filters by hand before running a query.

Common timestamp mistakes

The ones that trip people up most

Mixing up seconds and milliseconds

13 digits usually means milliseconds (JavaScript's Date.now()), 10 digits means seconds (POSIX, Python, PHP). Paste a 13-digit value with Seconds selected and you get a date tens of thousands of years in the future, with no warning. Switch to Milliseconds.

Assuming a timestamp carries a timezone

A Unix timestamp is a count from the epoch in UTC. The timezone only matters when you turn it into a readable date. Storing local datetimes without a zone causes real trouble, as described in Timestamps Without Timezone.

Expecting native microsecond support

For 16- or 19-digit values (micro- or nanoseconds), divide by 1,000 or 1,000,000 before pasting them in.

Why use this Unix time converter

The current Unix timestamp stays on screen as a reference point, so you don't need a terminal just to check what "now" is in epoch time. Use Now drops it into the input in one click.

Both directions sit side by side: epoch to date in the timezone you choose, UTC and ISO 8601, and date to epoch in seconds, milliseconds and hex. Everything runs in your browser.

Seconds vs. milliseconds

The single biggest source of confusion with Unix timestamps

Seconds (10 digits)
Milliseconds (13 digits)
Example
1712448000
1712448000000
Used by
POSIX, Linux, PHP, Python
JavaScript Date.now(), Java System.currentTimeMillis()
Conversion
—
divide by 1000 to get seconds

Frequently asked questions

It's almost certainly in milliseconds, the unit JavaScript's Date.now() and Java's System.currentTimeMillis() return. Divide by 1000 to get the 10-digit seconds value that Python's time.time(), PHP and date +%s work with.

References

Related Tools