download.fan

Unix Timestamp Converter

Convert a Unix timestamp (epoch time) to a date in UTC and your time zone, or a date to a timestamp. Detects seconds and milliseconds automatically. Free.

Current Unix timestamp: ··········

UTC
Jan 1, 2026, 12:00:00 AM
Your time zone
–
ISO 8601
2026-01-01T00:00:00.000Z
Read as
Seconds (10 digits)

What a Unix timestamp is

A Unix timestamp counts the seconds since 00:00:00 UTC on 1 January 1970, the 'Unix epoch'. Databases, APIs and log files use it because it's a single number with no time zone or format to misread. JavaScript and Java use milliseconds instead, giving 13-digit values; the converter detects which you've entered. It shows the date in UTC, in your local time zone and as ISO 8601, plus how long ago or how far ahead it is, and converts any date back to a timestamp.

How to use it

  1. 1

    Paste a timestamp

    Seconds (10 digits) or milliseconds (13 digits).

  2. 2

    Read the date

    In UTC, your time zone and ISO 8601 format.

  3. 3

    Or go the other way

    Pick a date and time to get its timestamp.

Frequently asked questions

How do I get the current timestamp in code?

JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). PHP: time(). SQL: UNIX_TIMESTAMP() in MySQL or EXTRACT(EPOCH FROM now()) in PostgreSQL.

What is the year 2038 problem?

Systems that store timestamps as signed 32-bit integers overflow at 03:14:07 UTC on 19 January 2038. Modern systems use 64-bit values.

Do timestamps include leap seconds?

No. Unix time ignores leap seconds, so every day is exactly 86,400 seconds.

Is anything sent to a server?

No. Everything is calculated in your browser, and nothing you type is stored or sent anywhere.

Date & time calculators

Related tools