Code tool

Convert Unix Timestamp to Date

Turn a Unix timestamp into an accurate UTC date and your local date and time. Choose seconds, milliseconds, or automatic unit detection.

In-browser processingNo account requiredPrivacy details ↗

Enter a numeric timestamp, such as 1704067200 or 1704067200000.

Auto detect uses seconds below 100,000,000,000 and milliseconds at or above it.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter a Unix timestamp as an integer or decimal value.
  2. Choose seconds, milliseconds, or Auto detect, then select Convert timestamp.
  3. Copy the UTC and local date results when you are ready to use them.

Seconds or milliseconds

Use the unit selector to make the timestamp unit explicit, or let the tool detect it from the value. Automatic detection treats values with an absolute value below 100,000,000,000 as seconds.

UTC and local time

Every valid result includes an ISO UTC value and a readable local date formatted with your browser time zone.

Safe browser conversion

Input is validated for a finite numeric value and the supported JavaScript date range. Conversion happens locally and nothing is uploaded or stored.

GOOD TO KNOW

Common questions

What is a Unix timestamp?

A Unix timestamp is the number of seconds or milliseconds since 1970-01-01 00:00:00 UTC.

How does Auto detect choose the unit?

Values below 100,000,000,000 in absolute value are interpreted as seconds; larger values are interpreted as milliseconds. Use an explicit unit when your value is near the boundary.

Why is my local time different from UTC?

Local time is formatted in the time zone configured in your browser, while UTC is the shared reference time.