Unix timestamp converter

Convert between Unix timestamps and an exact UTC date.

A Unix timestamp is a date and time written as a number. Convert one from a log, spreadsheet, or app into a date you can read.

How does the number work?

It counts from January 1, 1970 at midnight UTC. UTC is a shared time reference, which can differ from your local clock.

0 seconds
1/1/1970, 12:00 AM UTC
60 seconds later
1/1/1970, 12:01 AM UTC

Milliseconds use a finer unit: 1 second = 1,000 milliseconds. Choose the unit your source uses before pasting a value.

Use the unit named by the app or file you copied from.

A minus sign is allowed. Seconds accept up to 3 decimal places.

Enter your timestamp or UTC date to see the result.

Tell us what happened and what you expected. Please leave out personal information and private tool inputs.

These details describe your setup. They don’t include your name, email, or anything entered into the tool.

See the details included

Voting-limit status from this browser is included. Reports are stored by Netlify so I can investigate.

A date written as a number

Select the source unit, Seconds or Milliseconds, then paste the timestamp. The familiar date comes first, followed by the computer values in seconds and milliseconds. AM/PM is the default; choose 24-hour time if you need it. For the reverse direction, choose Date to timestamp, then enter a date and time labeled UTC.

1,700,000,000 seconds is 2023-11-14T22:13:20.000Z. In familiar terms, that is November 14, 2023 at 10:13:20 PM UTC. The same instant is 1,700,000,000,000 milliseconds. When entering these values, leave out the commas. -0.001 seconds is the final millisecond of 1969 in UTC.

How Unix time is counted

Zero is January 1, 1970 at midnight UTC. This tool follows the ECMAScript time-value definition, counting milliseconds without leap seconds. Decimal seconds are parsed into integer milliseconds before conversion, avoiding rounding at the last digit.

The supported range is 0001-01-01T00:00:00.000Z through 9999-12-31T23:59:59.999Z. A timestamp outside it shows an error. No values are stored or put in the page address.

If you need to move whole calendar dates instead of convert an instant, use the Date calculator.

FAQs

Should I choose seconds or milliseconds?

Use the unit defined by the system that produced the value. Milliseconds are 1,000 times seconds. The tool does not guess from the number of digits; changing the unit converts a valid entered value to preserve its instant.

Can a Unix timestamp be negative?

Yes. Negative values describe instants before January 1, 1970 UTC. A value of -1 second is December 31, 1969 at 23:59:59 UTC.

Why is the result in UTC?

UTC gives one unambiguous reference. A local clock time can be repeated or skipped when time-zone offsets change. Reverse conversion also takes UTC, so your browser’s local zone does not change the answer.

Will dates after 2038 work?

Yes, within the tool’s year 0001 to 9999 range. Some other systems use smaller integer storage and have different limits.

How much precision is supported?

Whole milliseconds, or seconds with up to three decimal places. Leap-second labels such as 23:59:60, scientific notation, and comma-separated numbers are not accepted.

Have an idea for a tool I should add? Send it in. I read every suggestion and choose which ones to build next.

For example: "Count the weekdays until a date, without holidays."

Please don't include your name, email, or anything personal. I don't need it. Voting-limit status from this browser is included.