Time

Timestamp Converter

Convert Unix time to ISO 8601, UTC, and local time in both directions.

Input
Result

Please input

Unix Timestamp Converter

Convert Unix time to a readable date, or a date back to Unix time. Enter a timestamp in seconds or milliseconds, or a date such as 2024-01-01T00:00:00Z, and the result shows Unix time in seconds and milliseconds, ISO 8601, UTC and your local time side by side. The Now button fills in the current time, so you can also use it to get the current Unix timestamp.

How to use

  1. Type or paste a Unix timestamp into the Unix time (seconds) field. Millisecond values such as 1700000000000 are accepted in the same field.
  2. Or type a date into the ISO 8601 field, for example 2024-01-01T00:00:00Z or 2024-01-01T09:00:00+09:00. Typing in one field clears the other, so the result always comes from the field you used last.
  3. Press Now to fill in the current time.
  4. Read the result: Unix time in seconds and in milliseconds, ISO 8601, UTC, and your local time.
  5. Copy the seconds, milliseconds or ISO 8601 value with the copy button next to it and paste it into your code, query or log search.

Frequently asked questions

How does it tell seconds from milliseconds?
Whole numbers whose absolute value is below 100,000,000,000 (up to 11 digits) are read as seconds, and larger numbers as milliseconds. So 1700000000 is read as seconds and 1700000000000 as milliseconds; both give 2023-11-14T22:13:20.000Z. Negative values for dates before 1970 are accepted, but decimals are not.
Which date formats can I enter?
The date field is read with the browser's Date.parse, so ISO 8601 works reliably: 2024-01-01, 2024-01-01T09:30:00, 2024-01-01T09:30:00Z, or with an offset such as +09:00. A date without a time is taken as midnight UTC, while a date and time without Z or an offset is taken as your device's local time. Other formats depend on the browser.
Which timezone is used?
Unix time itself has no timezone; it counts seconds since 1970-01-01T00:00:00Z. The ISO 8601 and UTC rows are always in UTC, and the Local time row uses your device's timezone, written in the language of this page.
What does the ISO 8601 output look like?
It is always UTC with milliseconds and a trailing Z, for example 2023-11-14T22:13:20.000Z. This is the format of JavaScript's toISOString and is accepted by most databases and APIs.
What is the year 2038 problem?
Systems that store Unix time in seconds as a signed 32-bit integer cannot go past 2147483647, which is 2038-01-19T03:14:07Z. You can enter that value here to check it. This tool uses JavaScript dates, so it converts values beyond 2038 without trouble.
What range of dates is supported?
Anything a JavaScript date can hold, about 275,000 years either side of 1970. Values outside that range show no result.
What is it useful for?
Reading timestamps in server logs, database columns and API responses, checking the exp or iat claim of a token, or getting the current Unix time for a test or a scheduled job.
Is anything sent to a server?
No. Conversion runs in your browser. What you type is also kept in the page URL, so reloading or bookmarking the page keeps the value.