Runs locally

Unix Timestamp Converter

Convert Unix timestamps to local dates, UTC dates and ISO strings. Generate seconds and milliseconds from date input in your browser.

Runs locally Browser Local Time and UTC are shown separately.

Current Unix Timestamp

Seconds
-
Milliseconds
-

Timestamp to Date

Waiting for a Unix timestamp.

Detected unit
-
Local Date
-
UTC Date
-
ISO 8601
-
Relative
-

Date to Timestamp

Waiting for a date and time.

Interpret input as
Unix seconds
-
Unix milliseconds
-
ISO 8601
-
Browser Local Time
-
UTC
-

Code Examples

JavaScript

const seconds = Math.floor(Date.now() / 1000);
const date = new Date(1735689600 * 1000);
const iso = date.toISOString();

PHP

$seconds = time();
$date = (new DateTimeImmutable())->setTimestamp(1735689600);
$iso = $date->setTimezone(new DateTimeZone('UTC'))->format(DateTimeInterface::ATOM);

Python

from datetime import datetime, timezone

seconds = int(datetime.now(timezone.utc).timestamp())
date = datetime.fromtimestamp(1735689600, tz=timezone.utc)

Java

Instant now = Instant.now();
long seconds = now.getEpochSecond();
Instant date = Instant.ofEpochSecond(1735689600);

Go

now := time.Now().Unix()
date := time.Unix(1735689600, 0).UTC()
iso := date.Format(time.RFC3339)

What is a Unix timestamp?

A Unix timestamp counts time from January 1, 1970 at 00:00:00 UTC. It is commonly used by APIs, databases, logs and programming languages because it is compact and timezone-neutral.

Unix seconds vs milliseconds

Unix timestamps are often stored in seconds, while JavaScript dates use milliseconds. This converter detects likely milliseconds for large timestamp values and labels the detected unit clearly.

Timestamp to date

Timestamp to Date converts a Unix value into Browser Local Time, UTC, ISO 8601 and a relative phrase. Local time depends on the timezone configured in your browser or operating system.

Date to timestamp

Date to Timestamp converts an entered date-time into Unix seconds, Unix milliseconds and ISO 8601. You can interpret the input as Browser Local Time or UTC.

Unix timestamp in JavaScript

JavaScript stores time internally as milliseconds since the Unix epoch. Use Date.now() for milliseconds and divide by 1000 for seconds.

Unix timestamp in PHP

PHP's time() returns current Unix seconds. Use DateTimeImmutable when you need timezone-aware formatting.

Unix timestamp in Python

Python can create timezone-aware timestamps with datetime.now(timezone.utc).timestamp(), which avoids accidental local-time assumptions.

FAQ

Does this converter upload my timestamp?

No. Conversion happens entirely in your browser.

Can it convert arbitrary named timezones?

No. It shows Browser Local Time and UTC clearly, but does not claim IANA timezone conversion.