Developer

Unix Timestamp Converter for Seconds and Dates

Convert a Unix timestamp in seconds or milliseconds to a readable date, or a date back to a timestamp, in your browser.

Runs locally in your browser
2026-10-09T11:45:35.000Z10/9/2026, 11:45:35 AM
1791546300 seconds
1791546300000 milliseconds

What it does

Unix Timestamp Converter turns a Unix timestamp into an ISO date and your local date and time, automatically detecting whether the number is in seconds or milliseconds. A second panel does the reverse: pick a date and time and get both the seconds and milliseconds timestamp. It suits developers reading logs, API responses or database values that store time as epoch numbers.

How to use it

  1. Enter a Unix timestamp (seconds or milliseconds) in the Unix to date field.
  2. Read the resulting ISO date and local date and time below it.
  3. Or pick a date and time in the Date to Unix field to get the matching timestamp.

Example

Input
1700000000
Output
2023-11-14T22:13:20.000Z

What happens to your file

  • Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
  • The processing code is downloaded from this site with the page; nothing about your input is sent back.
  • The result is created on your device and saved only when you choose to download it.

Limits

  • The seconds-versus-milliseconds guess is based purely on the size of the number, so an unusually small millisecond value could be misread as seconds.
  • Date-to-Unix conversion is limited to the precision of the datetime-local input, which does not include seconds or fractions of a second.
  • Conversions rely on your browser's local time zone setting, not a chosen time zone.

Questions

How does it know if I entered seconds or milliseconds?

Any value larger than 1,000,000,000,000 in absolute terms is treated as milliseconds; smaller values are treated as seconds.

What happens if I type an invalid number?

The Unix to date panel shows 'Invalid timestamp' instead of a date.

Does the date-to-timestamp conversion use my local time zone?

Yes. The date and time you pick is interpreted in your browser's local time zone before being converted to a timestamp.

Can I convert dates before 1970?

Negative timestamps are accepted and converted the same way as positive ones, as long as your browser's Date object can represent the resulting date.

Next steps