Unix Timestamp Converter

Convert Unix timestamps to readable dates and back again, in both local time and UTC. Includes a one-click button for the current timestamp — all in your browser.

Local time
UTC
Unix timestamp
As UTC
Advertisement

How to use the Unix timestamp converter

  1. To convert a timestamp to a date, type the number of seconds into the timestamp field. The local and UTC dates update as you type.
  2. To get the current timestamp, click Use current timestamp. The field fills with the number of seconds since January 1, 1970.
  3. To convert a date to a timestamp, type a date into the date field, for example 2026-09-21 14:30. The equivalent timestamp appears below it.

What a Unix timestamp is

A Unix timestamp counts the seconds that have passed since the Unix epoch: midnight UTC on January 1, 1970. The number 0 means exactly that instant, and the value grows by one every second. It is the most common way computers store time because it is a single plain number that works in every programming language and database, with no time-zone confusion in the stored value itself.

The same timestamp represents a different wall-clock time in different parts of the world, which is why this tool shows both local time and UTC. UTC is the universal reference, and your local time is UTC shifted by your device's time-zone offset.

Seconds vs. milliseconds

Some systems, especially JavaScript, measure the epoch in milliseconds rather than seconds. A millisecond timestamp is a thousand times larger — for example, the current time is roughly 1.7 trillion in milliseconds but about 1.7 billion in seconds. This tool expects seconds, so if you have a millisecond value, divide it by 1,000 first, or drop the last three digits.

Common uses

ContextWhy timestamps appear
Log filesServers stamp each line with a Unix timestamp for compact, sortable time.
APIsResponses return dates as timestamps that need converting to read.
DatabasesTimestamp columns store time as integers for fast range queries.
Cookies and tokensExpiry times are often expressed in Unix seconds.

Frequently asked questions

The Unix epoch is midnight UTC on January 1, 1970. A Unix timestamp is the number of seconds since that moment.
It expects seconds. If your value is in milliseconds, divide it by 1,000 first.
The same instant is shown in your local time zone and in UTC, so you can see both the universal reference and your local clock.
No. All conversions run locally in your browser with JavaScript. Nothing is uploaded or stored.