Free developer tool

Unix Timestamp Converter

A Unix timestamp counts the seconds since 1 January 1970 UTC. Paste a timestamp to see the date, or choose a date to get the timestamp.

Report a problem or suggest a fix for this tool

What is unix timestamp converter?

Unix time is how many systems store dates. Databases, logs, APIs and JWT tokens often show a number such as 1700000000 instead of a date, which is hard for people to read.

This converter detects seconds and milliseconds, shows the time in UTC and in your local time zone, and tells you how long ago or from now it is.

How to use the unix timestamp converter

  1. Choose the direction.
  2. Paste a timestamp, or pick a date and time.
  3. Press Convert and read the result.

How the unix timestamp converter works

A timestamp with 11 or more digits is treated as milliseconds, otherwise as seconds. It is turned into a date and formatted as UTC, local and ISO 8601. For the other direction, the date is divided by 1,000 and rounded down.

Worked example

1700000000 is Tuesday 14 November 2023, 22:13:20 UTC. The current time in 2027 is a number around 1.8 billion.

Common uses of the unix timestamp converter

  • Reading timestamps in logs and databases.
  • Debugging API responses and token expiry times.
  • Setting an expiry time as a number.
  • Converting dates for spreadsheets and scripts.
  • Checking how old a record is.

Tips and common mistakes

If a timestamp gives a date in 1970, you probably passed seconds where milliseconds were expected, or the reverse.

Always store and send times in UTC and convert to local time only when you show them.

Background: what to know before you rely on it

Unix time began as a simple solution in the early 1970s: count seconds from a fixed starting point, called the epoch. It ignores time zones and daylight saving, which is its strength. Two systems anywhere in the world can agree on the same moment, and a time can be compared or sorted as a plain number. Presentation is separate, so a program turns the number into a local time only for display. JavaScript uses milliseconds rather than seconds, which is a frequent source of off by a thousand errors. In January 2038, systems that still use a signed 32 bit counter will overflow, so modern software uses 64 bit values.

Private, free and fast

This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all developer tools, or browse the full list of tools.

Field by field guide

  • What do you want to do?: Choose one of: Timestamp to date; Date to timestamp.
  • Unix timestamp (seconds or milliseconds): Type your value. The example is 1700000000.
  • Date and time (for date to timestamp): Pick a date from the calendar.

Change one field at a time to see how the result responds, and use the worked example above to check that you get the same answer.

Working with Unix time

A Unix timestamp counts the seconds since 1 January 1970 UTC. It has no time zone, which makes it a safe way to store moments.

Expert tips

  • Many APIs use milliseconds, which adds three digits. 1700000000 is seconds and 1700000000000 is milliseconds.
  • Convert to local time only for display.
  • The value 0 is 1 January 1970 00:00:00 UTC.
  • The year 2038 problem affects systems that store seconds in a signed 32 bit integer.
  • Use ISO 8601 text, like 2026-11-10T09:00:00Z, for readable exchange.

Always state the time zone when you show a converted date.

Frequently asked questions

What is a Unix timestamp?

The number of seconds since 1 January 1970 at 00:00 UTC.

How do I tell seconds from milliseconds?

Ten digits is seconds. Thirteen digits is milliseconds.

What is the year 2038 problem?

Systems that store time as a signed 32 bit number overflow in January 2038.

Does Unix time include leap seconds?

No.

Embed this tool on your website

Copy the code below and paste it into your page or blog post. The tool is free to embed, runs in the visitor's browser and needs no account. Please keep the credit link.

Related tools

Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Do not paste live secrets into any website.