Unix timestamp converter

Convert Unix timestamps to UTC dates and back, in seconds or milliseconds.

Convert a Unix timestamp to a UTC date, or turn a UTC date into seconds or milliseconds since the Unix epoch.

Your inputs stay herePUFFINMINT

Set your data

Set your data

Choose a direction and unit. Enter dates as complete ISO 8601 UTC values, such as 2026-01-01T00:00:00Z.

Result

Enter your data and run the tool. Your result will appear here.

The values you enter stay on this page. Reloading or closing it clears them.

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

What a Unix timestamp is for

A timestamp identifies an instant relative to the start of 1970 in UTC. Use it to inspect logs, technical expiry times and API data when you know which unit the source system uses.

Convert a date or a number

Compare the UTC date, seconds and milliseconds. Seconds are rounded down. The Unix epoch button sets the value to zero.

  1. Choose timestamp to date or date to timestamp.
  2. Explicitly select seconds or milliseconds; the tool does not detect the unit.
  3. Enter an integer or a full UTC date such as 2024-01-01T00:00:00Z, then convert.

The Unix epoch and units

One second equals 1000 milliseconds. When converting a date to seconds, the engine rounds down, including before the epoch: −1 millisecond becomes −1 second. Leap seconds are not represented.

Read UTC dates correctly

A trailing Z means UTC. The output does not use your device time zone and is not automatically local time. A negative value represents an instant before 1 January 1970.

Example: inspect an event time

An event recorded in a log

Input
1704067200
Result
2024-01-01T00:00:00.000Z

In seconds, 1704067200 represents the start of 2024 in UTC. The same instant in milliseconds is 1704067200000. Changing the unit without changing the number produces a different date.

Format and precision limits

Timestamps must be integers of up to 16 digits within the browser Date range of ±8,640,000,000,000,000 milliseconds. Dates require seconds, a trailing Z and at most three fractional digits. Offsets such as +02:00 and impossible dates are rejected. Omit thousands separators.

Sources and further reading

Frequently asked questions

Can I enter a date such as 2024-01-01 on its own?

No. Include the UTC time, for example 2024-01-01T00:00:00Z. The tool does not assume local midnight.

How do I convert a JWT exp value?

If the claim follows NumericDate, choose seconds. Converting it only displays a date; it does not verify the signature or validate the token. Values stay in the page until it reloads.

Favorites