Unix timestamp to a date and back, in seconds or milliseconds.

Used for "Timestamp to date".

Used for "Date to timestamp"; read as UTC.

Enter a Unix timestamp, or switch direction to turn a date into a timestamp.

Private ● Runs entirely on your device Runs entirely on your device. Nothing is uploaded.No account required.Nothing stored unless you choose to save it.
▸ More about

Uses of Unix timestamp conversion

  • Reading a Unix timestamp from a log, database row, or API response.
  • Turning a specific date into a timestamp for a config or query.
  • Checking whether a value is in seconds or milliseconds before using it.

Unix timestamp conversion pitfalls

  • Reading a milliseconds timestamp as seconds, which lands the date thousands of years in the future.
  • Assuming a Unix timestamp is in local time when it is always counted from UTC.
  • Forgetting that the epoch starts on 1 January 1970, so earlier dates are negative.

Unix timestamp conversion questions (5)

How do I convert a Unix timestamp to a date?

Keep the direction on "Timestamp to date", paste the number, and choose whether it is in seconds or milliseconds. The tool shows the moment in UTC, the ISO 8601 string, your local time, and the day of the week. For example, 1700000000 seconds is 22:13:20 UTC on Tuesday 14 November 2023.

How do I convert a date to a Unix timestamp?

Switch the direction to "Date to timestamp" and enter a date and time. That time is read as UTC, so the result is the same everywhere, and you get the timestamp in both seconds and milliseconds. For example, 14 November 2023 at 22:13:20 UTC is the timestamp 1700000000.

Is a Unix timestamp in seconds or milliseconds?

Both are common. Classic Unix time counts seconds since the epoch, while JavaScript and many APIs use milliseconds, which are 1000 times larger. If a timestamp converts to a date far in the future, it is almost certainly milliseconds being read as seconds. Pick the matching unit before converting.

What is the Unix epoch?

The Unix epoch is midnight UTC on 1 January 1970. A Unix timestamp is simply the number of seconds (or milliseconds) that have elapsed since that instant. Times before 1970 are negative. Because the count starts from UTC, a timestamp carries no timezone of its own.

Is my data sent anywhere?

No. The conversion runs entirely in your browser using your device clock and built-in timezone data. Nothing you type is uploaded, stored on a server, or shared, so it works offline once the page has loaded.

How to Convert a Unix Timestamp to a Date All Date & Time