⏱

Timestamp Converter

Convert Unix timestamps to readable dates and dates to Unix timestamps instantly.

Current Unix Timestamp

—

All times shown in your local timezone

Unix Timestamp → Date

Date → Unix Timestamp

Quick presets

About this tool

Last updated:

Convert Unix timestamps to dates and back

This Unix timestamp converter turns an epoch number into a readable date, and a date and time into epoch seconds and milliseconds. A live clock at the top shows the current Unix timestamp, so you can grab the present value in one click.

How to use it

  1. For timestamp to date, type a number into Unix timestamp (seconds) and press Convert. You can fill it with the current time using Use in converter.
  2. For date to timestamp, pick a value in Select date & time and press Convert.
  3. The presets Now, Start of day and Start of year fill the date field for you.
  4. Use the Copy button next to any result to copy it.

How it works

A Unix timestamp counts the seconds since 1 January 1970 UTC. The tool multiplies your number by 1000 and builds a JavaScript date from it. If the absolute value is 100,000,000,000 or more, it assumes you pasted milliseconds and divides by 1000 first. That means a 13-digit value works as well as a 10-digit one.

What you see

DirectionOutputs
Timestamp to dateISO 8601, UTC, local date, local time, local string, and a relative label such as "3 hours ago" or "in 2 days"
Date to timestampSeconds, milliseconds and ISO 8601

Local values use your device's time zone and locale.

Assumptions and limits

  • The date picker is read in your local time zone, so the same picked time gives a different timestamp on a device set to another zone.
  • There is no time zone selector. Use the ISO 8601 or UTC row for a fixed reference.
  • The timestamp field only accepts numbers. An empty or out-of-range value shows an error.
  • Values are rounded down to whole seconds when converting a date.

Frequently asked questions

Does it accept milliseconds?

Yes. Any number with an absolute value of 100,000,000,000 or more is treated as milliseconds, so 1700000000000 gives the same date as 1700000000.

Is the result in UTC or my time zone?

Both. The ISO 8601 and UTC rows are in UTC. The local rows use your device's time zone.

Can I enter a negative timestamp?

Yes. Negative values give dates before 1970, as long as they fall within the range a JavaScript date supports.

What does the Relative row mean?

It compares the converted date with your current time, for example "5 minutes ago" or "in 3 weeks".

More to explore

Related Developer Tools

Browse all tools from the same category.

Showing 1-2 of 49