Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and back, in seconds or milliseconds, with UTC, local and ISO 8601 output.

Loading tool…

Conversion uses your browser's own date handling. Nothing is sent to a server.

What the Unix Timestamp Converter does

This unix timestamp converter will convert Unix timestamps to human-readable dates and back, in seconds or milliseconds, with UTC, local and ISO 8601 output. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for reading a timestamp from a log file or database row. If you need the other side of this job, there is also a CSS tooltip generator.

How to use it

  1. Paste a timestamp to convert it to a date, or pick a date to get the timestamp.
  2. Seconds and milliseconds are detected automatically by magnitude.
  3. Results are shown in UTC, your local time zone and ISO 8601.
  4. The live clock shows the current timestamp for reference.

How it works

A Unix timestamp counts seconds since 1 January 1970 UTC, ignoring leap seconds. Because it is a single integer with no time zone attached, it is unambiguous — which is exactly why systems store time this way and convert to a local representation only for display.

Seconds versus milliseconds is the usual confusion. JavaScript uses milliseconds, most other languages and databases use seconds, so a value is a thousand times off if the unit is assumed wrongly. Detection here is by magnitude: a 10-digit value is seconds, a 13-digit value is milliseconds.

The 32-bit signed limit arrives on 19 January 2038, when a value stored in a signed 32-bit integer overflows into negative numbers. Most modern systems use 64-bit time, but embedded devices and older file formats remain exposed.

When to use it

  • Reading a timestamp from a log file or database row.
  • Generating a timestamp for an API that expects epoch time.
  • Checking what time a token was issued or expires.

Common mistakes to avoid

  • Mixing seconds and milliseconds, giving a date in 1970 or far in the future.
  • Assuming a timestamp carries a time zone — it is always UTC by definition.
  • Storing local time instead of UTC, which breaks across daylight-saving transitions.

Frequently asked questions

Seconds or milliseconds?

A 10-digit number is seconds, which is the Unix convention. A 13-digit number is milliseconds, which is what JavaScript uses. The tool detects which by magnitude.

What is the year 2038 problem?

On 19 January 2038 the seconds count exceeds what a signed 32-bit integer can hold and wraps to negative. Systems using 64-bit time are unaffected; some embedded and legacy systems are not.

Related tools

See all developer tools →