Skip to the content

Contact usFree tools · No signup · Files stay on your device

Developer Tools

Timestamp Converter: the complete guide to Unix timestamps

Timestamp Converter: the complete guide to Unix timestamps

A Unix timestamp is a single number that stands for a moment in time: the count of seconds since midnight UTC on 1 January 1970. It is how databases, APIs, log files and programming languages usually store a date, because one number is easy to save, sort and compare. It is also impossible to read at a glance. Our free Timestamp Converter turns 1700000000 into a date you can understand, turns a date back into a timestamp, and can convert a whole list at once, all in your browser.

This guide explains each panel on the page, how it decides between seconds and milliseconds, and the mistakes that put a date hours or years out.

What Timestamp Converter does

The page has four parts:

  • A live clock showing the current Unix time.
  • Timestamp → date: paste a number and see it as a date in any time zone.
  • Date → timestamp: pick a date and time and get the number.
  • Batch convert: paste many timestamps, one per line, and download a table.

It works with seconds, milliseconds, microseconds and nanoseconds. It does not store anything, and it does not know about leap seconds, which Unix time ignores by design.

How to use Timestamp Converter, step by step

  1. Open Timestamp Converter. The Unix timestamp box is already filled with the current time in seconds.
  2. Replace it with your number, for example 1700000000. Commas, spaces and underscores are ignored, so 1,700,000,000 works too.
  3. Leave Unit on Auto-detect, or choose Seconds, Milliseconds, Microseconds or Nanoseconds.
  4. Choose a Time zone from the list. It starts on your own zone.
  5. Read the results table and press Copy beside any row you need. Press Now to put the current time back in the box.

For 1700000000 the table shows:

Row Value
UTC Tue, 14 Nov 2023 22:13:20 GMT
ISO 8601 (UTC) 2023-11-14T22:13:20.000Z
RFC 2822 Tue, 14 Nov 2023 22:13:20 +0000
Asia/Dhaka (if chosen) 2023-11-15T04:13:20.000+06:00
Seconds / ms 1700000000 / 1700000000000

There is also a Relative row, such as "2 years ago" or "in 3 days", worked out against your clock.

Every option explained

Current Unix time

The top panel shows the present moment as Seconds, Milliseconds, UTC and Your time zone. It refreshes four times a second. Copy seconds copies the current 10-digit value, which is handy when you need a timestamp for a test record.

Unit: Auto-detect, Seconds, Milliseconds, Microseconds, Nanoseconds

With Auto-detect the page looks at how big the number is. Below 100 billion it assumes seconds, below 100 trillion milliseconds, below 100 quadrillion microseconds, and anything larger nanoseconds. In practice that is the digit count: 10 digits is seconds, 13 is milliseconds, 16 is microseconds and 19 is nanoseconds.

After detecting, the page says "Detected as milliseconds. Wrong? Pick the unit manually." The guess can be wrong for unusual numbers. A millisecond value for a date in January 1970, such as 1000000000, is read as seconds in the year 2001. If your number is clearly meant to be something else, choose the unit yourself.

Time zone

The list uses your browser's full set of time zones, with names such as Asia/Dhaka, Asia/Kolkata or America/New_York. If the browser cannot supply the full list, a shorter built-in list of common zones is used. The chosen zone drives one row of the table and the last column of the batch table. The UTC, ISO 8601 and RFC 2822 rows always stay in UTC, and one row always shows Your time in your own zone.

Date → timestamp

Under Date → timestamp, choose the Date and time, then the zone it is in under "In time zone". The page shows Seconds, Milliseconds and ISO 8601 (UTC). The time field works to the second, so milliseconds come out as the seconds with 000 added.

For example, midnight at the start of 1 January 2026 in Dhaka (UTC+6) is 1767204000. The same clock time in UTC would be 1767225600, six hours later. Always choose the zone first.

If you pick a clock time that never happened in that zone, because the clocks jumped forward for daylight saving, a yellow note says "This local time doesn't exist in …" and the value is shifted.

Batch convert

Paste timestamps into "Timestamps, one per line". Each line is detected on its own, so you can mix seconds and milliseconds. The table has Input, Unit, UTC and your chosen zone. Lines that are not numbers show the reason instead, such as "Not a number — enter digits only, e.g. 1700000000." Empty lines are skipped, and the page converts at most the first 2,000 lines to keep things quick.

Press Download CSV to save Timestamps.csv with the columns timestamp, unit, utc_iso and zone_iso, which opens straight in Excel.

What it accepts and its limits

  • Numbers only: optional minus or plus sign, digits and an optional decimal point. Anything else gives the "Not a number" message.
  • Negative values are dates before 1970.
  • Decimals work for seconds: 1700000000.5 is half a second later.
  • Range: dates up to about 275,760 years either side of 1970. Beyond that you see "That timestamp is outside the range JavaScript dates support (±275,760 years)."
  • Precision: dates are shown to the millisecond. A microsecond or nanosecond value is read correctly, and the digits beyond the millisecond are dropped. So 1700000000123456 and 1700000000123 show the same date.
  • Batch size: the first 2,000 non-empty lines.

Privacy

Timestamp Converter runs in your browser. Nothing you type is sent to our server. The page reads the clock and time-zone list of your device, which is why the numbers on it match your computer. A timestamp is rarely secret, but pasting log lines or database rows is common, and none of it leaves your device.

Practical examples

Reading a log line

A log shows ts=1700000000123. That is 13 digits, so the page detects milliseconds and gives 2023-11-14T22:13:20.123Z. Your server's logs are usually in UTC, so pick Asia/Dhaka to see the local time as 2023-11-15T04:13:20.123+06:00.

Checking when a token expires

In a login token, claims such as iat (issued at) and exp (expires at) are Unix timestamps in seconds. Decode the token with the JWT Decoder, paste the exp value here, and look at the Relative row to see whether it is still valid.

Converting a column of timestamps from a database

Copy the column, paste it into Batch convert, choose your zone and press Download CSV. If you would rather do it in Excel, see how to convert a Unix timestamp to a date in Excel.

Checking the 2038 limit

Old systems that keep time in a signed 32-bit number run out at 2147483647, which is 19 January 2038 at 03:14:07 UTC. Paste that value to see it, then paste 2147483648 to see where it would continue.

Common problems and how to fix them

The date is in the wrong year

Look at the unit. If Unit is set to Milliseconds but your number is in seconds, the date lands in January 1970. If it is set to Seconds for a 13-digit number, the date lands tens of thousands of years away. Set Unit back to Auto-detect, or pick the right one by hand.

The time is hours out

You are probably reading it in the wrong zone. Compare the UTC row with the zone row, and remember that Bangladesh is UTC+6.

"Not a number — enter digits only, e.g. 1700000000."

The text contains letters or symbols, such as ts= or a date string. This tool converts numbers, not date text. Remove the extra characters.

Pasted a date and got nothing useful

For the other direction, use Date → timestamp. It takes a date and time, not text such as 14 Nov 2023.

  • JWT Decoder: read a token's iat and exp claims, which are timestamps.
  • JSON Formatter: make an API response readable before you find the timestamp in it.
  • UUID Generator: create unique IDs for records that also carry a timestamp.
  • Developer Tools: the rest of our developer utilities.

Quick checklist

  • Count the digits: 10 is seconds, 13 is milliseconds.
  • Check the time zone before you trust a clock time.
  • UTC is what the timestamp really is; every other zone is a display choice.
  • Use Date → timestamp for the reverse direction, with the right zone.
  • Use Batch convert for lists, then Download CSV.

Frequently asked questions

How can I tell if a timestamp is in seconds or milliseconds?
Count the digits. A current timestamp has 10 digits in seconds, 13 in milliseconds, 16 in microseconds and 19 in nanoseconds. The page uses the size of the number to guess, tells you what it detected, and lets you choose the unit yourself.
Why is my date a few hours off?
A Unix timestamp has no time zone, and the time zone only appears when it is shown as a calendar date. The same timestamp is 22:13 in UTC and 04:13 the next morning in Dhaka. Check which zone the date is shown in.
Does the converter keep microseconds and nanoseconds?
Dates are shown to the millisecond. Longer values are read correctly, but the digits beyond milliseconds are dropped from the displayed date.
Can I convert a date back into a timestamp?
Yes. Under Date → timestamp, pick the date, the time and the time zone it is in, and the page shows the seconds, the milliseconds and the ISO 8601 form in UTC.
Is my data sent to a server?
No. The conversion runs in your browser, and the page uses your device's own clock and time-zone list.
Found this useful? Share it

Tools in this guide

Main tool

Timestamp Converter

See the current Unix time, turn any epoch timestamp into a human-readable date in any time zone, or convert a date back to seconds and milliseconds.

Open tool

JWT Decoder

Paste a JSON Web Token to read its header and claims, see whether it's expired, and optionally verify the signature with a secret or public key.

Open tool

JSON Formatter

Paste messy or minified JSON to get clean, indented output instantly — or minify it for production.

Open tool

UUID Generator

Create random version 4 or sortable version 7 UUIDs (GUIDs) instantly, format them for your code or database, and inspect any UUID you paste.

Open tool

Back to all guides & blog