Unix time converter

Convert Unix timestamps in seconds or milliseconds to readable dates, and dates back, with a live clock.

Everything happens on your device. What you type never leaves it.

Number is in
Typed times are in

This tool needs JavaScript to run

About this tool

Unix time counts the seconds that have passed since 1 January 1970 at midnight UTC. It is how many programs, databases and logs store a moment, because one number is easy to compare and does not depend on a time zone. This tool turns that number into a date you can read, and a date back into the number.

Type or paste a timestamp, or a date and time, and the result appears as you type: Unix seconds and milliseconds, the time on your own clock, UTC, ISO 8601 and how long ago or from now it is. A number is read as seconds or milliseconds by its size, and you can choose one by hand if the guess is wrong. A date typed without an offset is read on your clock or in UTC, as you choose; one that ends in Z or +01:00 keeps its own offset.

The current Unix time is shown at the top and counts up every second. Pause it to copy a value, or use it as the input. If the input is not a timestamp or a real date, you are told what is wrong and where.

Everything happens on your device. What you type is never sent to a server, and the tool keeps working offline.

Examples

Seconds to a date

Input

1700000000

Output

ISO 8601: 2023-11-14T22:13:20.000Z

Milliseconds to a date

Input

1700000000123

Output

ISO 8601: 2023-11-14T22:13:20.123Z

A date back to Unix time

Input

2023-11-14T22:13:20Z

Output

Unix seconds: 1700000000

Common questions

Is what I type uploaded anywhere?

No. The conversion is done by code running in your browser. Nothing is sent to ajx.io or to anyone else, and the tool keeps working if you go offline.

How does it tell seconds from milliseconds?

By size. A value of 100000000000 or more is read as milliseconds, because as seconds it would be after the year 5138. Smaller values are read as seconds. If you know better, choose Seconds or Milliseconds under the input.

Which time zone is used?

Local time uses the clock of your device. UTC and ISO 8601 always use UTC. A date you type without an offset is read on your clock by default, or in UTC if you choose that; a date that ends in Z or an offset such as +05:30 keeps it.

Why is a date I typed rejected?

The date must be real. A month of 13, the 30th of February or an hour of 24 is refused, and the message names the field and its position so you can fix it. Use the form 2023-11-14, 2023-11-14 22:13:20 or 2023-11-14T22:13:20Z.

What range of dates does it handle?

From the year -271821 to 275760, which is the range of a JavaScript date. A number outside it is refused with a message.