Free developer tool

Read a Unix timestamp as a UTC date and your local time

For developers checking logs, tokens, API payloads and database rows. The conversion uses your browser's Date object, so the local time shown is your device's time zone, and nothing leaves your browser.

Seconds or milliseconds auto-detectedUTC in ISO 8601 and local timeReverse: local date to Unix seconds
Unix Timestamp Converter

Paste a Unix timestamp on the left to read it as a date, or pick a local date and time on the right and convert it to Unix seconds.

Runs on your device

What the Unix Timestamp Converter does

Unix time counts seconds since 00:00:00 UTC on 1 January 1970, the Unix epoch, ignoring leap seconds. It carries no time zone, which is why the same number reads differently to people in different places. The Unix Timestamp Converter shows two readings of a timestamp at once: the UTC instant in ISO 8601 form, such as 2026-01-01T00:00:00.000Z, and the same instant in your device's time zone, written in full with the zone name.

The tool accepts either seconds (about ten digits today) or milliseconds (about thirteen digits), the form JavaScript's Date.now() produces. It decides by size: any absolute value of 100,000,000,000 (1e11) or more is treated as milliseconds, anything smaller as seconds. A Use current time button fills in the present moment as whole seconds.

A second panel does the reverse. Pick a local date and time with your browser's date-time control and press Convert to Unix seconds; the result is written into the timestamp field so you see its UTC and local readings as well.

How to use it

Paste the timestamp

Enter the value in the Unix timestamp field. Plain digits, a leading minus sign for dates before 1970, and decimal fractions of a second are all accepted.

Read UTC and local time

The UTC line uses ISO 8601 with millisecond precision and a Z suffix. The local line uses your browser's language and time zone, including the zone abbreviation or offset.

Convert a date back

In Local date and time, choose a date and time, then press Convert to Unix seconds. The value is interpreted in your device's time zone and rounded down to whole seconds.

How seconds and milliseconds are told apart

Nothing in a timestamp says which unit it uses, so the tool relies on a size threshold. 1e11 seconds would be 16 November 5138, which no real seconds-based timestamp reaches; 1e11 milliseconds is 3 March 1973, which almost every millisecond timestamp exceeds. Any value at or above 1e11 is therefore read as milliseconds and anything below as seconds.

The rule has two consequences. A millisecond timestamp from before March 1973 is misread as seconds and lands far in the future, and a seconds value for a year beyond 5138 is misread as milliseconds. If you work with those ranges, divide or multiply by 1000 yourself before pasting.

What the two output lines show

The UTC line is produced by Date.prototype.toISOString(), which always gives the form YYYY-MM-DDTHH:mm:ss.sssZ in UTC, no matter where you are. It is the safest form to paste into a bug report or a database query because it cannot be misread.

The local line comes from toLocaleString with the full date style and long time style, so a visitor in Lahore sees something like Thursday, January 1, 2026 at 5:00:00 AM GMT+5 while a visitor in London sees midnight. Daylight saving rules for the chosen date are applied by the browser from the operating system's time zone data.

Converting a local date to a timestamp

The date-time control gives a value such as 2026-10-14T12:30 with no offset. JavaScript treats a date-time string without an offset as local time, so the tool converts it using your device's zone, divides by 1000 and rounds down. Enter 00:00 on a given day to get the timestamp for local midnight; if you need UTC midnight instead, read the UTC line after converting and adjust by your offset.

Limits to know before you rely on it

  • Only two time zones are shown: UTC and the device's current zone. There is no picker for other zones or for historical offsets.
  • Input must be a number. ISO 8601 strings, RFC 2822 dates and values with underscores or commas make both readings say Enter a number.
  • Timestamps outside roughly plus or minus 8.64e15 milliseconds (about 275,000 years either side of 1970) cannot be represented by Date and display nothing.
  • Unix time ignores leap seconds, so an instant inside a leap second cannot be expressed; this is a property of Unix time itself, not of the tool.
  • The reverse conversion rounds down to whole seconds and inherits the minute or second resolution of your browser's date-time control.

Questions people ask about the Unix Timestamp Converter

Why does the local time differ from the UTC line?

A timestamp is a single instant; UTC and your local zone are two ways of labelling it. Your browser applies the time zone configured on your device, including daylight saving for that date, so the two lines differ by your current offset, for example five hours for Pakistan Standard Time.

Is 1767225600 in seconds or milliseconds?

Seconds. It is below the 1e11 threshold, so the tool reads it as seconds and shows 2026-01-01T00:00:00.000Z. The same instant in milliseconds is 1767225600000, which is read as milliseconds because it is thirteen digits.

Can I enter a negative timestamp?

Yes. Negative values count backwards from the epoch, so -1 is 1969-12-31T23:59:59.000Z. The same 1e11 threshold applies to the absolute value, so very large negative numbers are treated as milliseconds.

What does Use current time insert?

The current instant from your device clock as whole Unix seconds, which is Date.now() divided by 1000 and rounded down. If your clock is wrong, the value will be wrong by the same amount.

Why do the readings say Enter a number after I paste a value?

The field only accepts numbers. A date string or a value with commas or underscores makes both readings say Enter a number, and a number so large that Date cannot represent it reads Outside the range a date can hold. Strip the formatting and paste digits only.

How do I get the timestamp for midnight UTC on a date?

Pick that date at 00:00 in the local control, press Convert to Unix seconds, then read the UTC line. Add or subtract your zone's offset in seconds (3600 per hour) to land on UTC midnight, or set your device to UTC first.

Sources and further reading