Converter tool

Unix Timestamp Converter

Read epoch seconds, milliseconds, microseconds or nanoseconds as dates in UTC and any time zone, turn a local date back into a timestamp with daylight saving checked, and add date columns to a CSV.

Current Unix time

Seconds
…
Milliseconds
…

Read from this device’s clock. A copy button copies the value at the moment you press it.

Timestamp to date

Any IANA time zone, such as Asia/Tokyo.

Preparing the converter...

Date to timestamp

Year-month-day and a 24-hour time. End it with Z or an offset such as +02:00 to skip the zone menu.

Starts as this device's zone.

UTC is at UTC +00:00 at that moment.

Timestamp

Seconds
1767225600
Milliseconds
1767225600000
UTC
2026-01-01T00:00:00Z

Many timestamps at once

Paste one timestamp per line, or load a CSV and pick its timestamp column. The download adds a UTC column and a column in the zone you choose, both in ISO 8601.

The second added column shows each moment in this zone, with its offset.

Negative timestamps count back from 1970-01-01T00:00:00Z. JavaScript dates cover -271821-04-20T00:00:00Z to +275760-09-13T00:00:00Z (8,640,000,000,000,000 milliseconds either side of 1970); values beyond that are refused. Time zone rules come from this browser’s built-in zone data, and files are read inside this tab.

Preview

Output Preview

Paste timestamps or load a CSV, then press Convert batch to preview the first 20 rows with their new date columns.

Unix Timestamp Converter

Operator: Abdulla Al Fahad. How tools are built and checked

Unix time is a count of seconds since 1970-01-01T00:00:00Z. Log files, databases, API responses and spreadsheet exports store it as a bare number with no unit attached, so the same moment can arrive as 1700000000 from one system, 1700000000000 from a JavaScript app and 1700000000000000000 from a tracing tool that counts nanoseconds. This converter works out which unit a number is in from its length, shows the moment in UTC, in your device's zone and in one more zone of your choice, and adds the weekday, the ISO week and how long ago or how far ahead it is.

It also runs in reverse: give it a date, a time and a zone and it returns seconds and milliseconds, warning you when the clocks skipped that time or passed through it twice. For a whole column of timestamps, paste them one per line or load a CSV, and download the file with a UTC column and a local column added next to the original.

Key features

  • Live Unix clock showing seconds and milliseconds, with copy buttons that take the value at the moment of the click
  • Unit detected from the digit count, with a manual override
  • UTC, device zone and any IANA zone side by side, each with weekday and ISO week
  • The same instant written as seconds, milliseconds, microseconds and nanoseconds
  • Relative time, such as 2 years ago, with an exact day, hour, minute and second breakdown
  • Date to timestamp with skipped (spring forward) and repeated (fall back) local times reported
  • Negative timestamps for dates before 1970
  • Batch conversion of pasted lines or a CSV column, with a summary of blank and unreadable cells

How units are guessed and dates written

A timestamp may have a minus sign and a decimal part. Digit groups separated by commas, underscores or spaces in threes (1,700,000,000) are joined up, and scientific notation such as 1.7E+12 is expanded exactly and flagged, because a spreadsheet only writes numbers that way after rounding them for display.

With the unit set to detect, the number of digits before any decimal point decides: up to 11 digits are seconds, which reaches the year 5138; 12 to 14 are milliseconds; 15 to 17 microseconds; 18 or more nanoseconds. The unit menu overrides the guess. Arithmetic is done with whole-number BigInt values, so a 19-digit nanosecond count keeps every digit instead of being rounded the way an ordinary JavaScript number is beyond about 15 significant digits.

Dates are written in ISO 8601: 2023-11-14T22:13:20Z for UTC and 2023-11-14T17:13:20-05:00 in a zone. The number of decimals follows the unit, three for milliseconds, six for microseconds and nine for nanoseconds. Years outside 0000 to 9999 use the expanded form, such as +275760. The ISO week is shown as year, week and weekday number, so 2023-W46-2 is the Tuesday of week 46.

The date box reads year-month-day with a 24-hour time, seconds and up to three decimals optional, such as 2026-01-31 18:45:00. Ending the text with Z or an offset such as +02:00 fixes the moment and the zone menu is then ignored. JavaScript dates reach from -271821-04-20T00:00:00Z to +275760-09-13T00:00:00Z, which is 8,640,000,000,000,000 milliseconds either side of 1970; anything beyond is refused with that range in the message.

In a CSV, two columns are inserted right after the one you pick: "name (UTC)" and "name (zone)", both ISO 8601. Every other cell is copied unchanged, and the file keeps the source's byte-order mark and line endings. Files up to 20 MB and 200,000 data rows are accepted; the paste box takes up to 50,000 lines and produces a four-column CSV of timestamp, unit, UTC and the chosen zone.

How it works

The number is read as text, never as a floating-point value, and turned into an exact count of nanoseconds. That count is split into whole milliseconds (what a JavaScript date holds) and the leftover nanoseconds, which are added back when the decimals are printed. Calendar dates come from plain arithmetic on days since 1970 rather than from the Date object, which is why years past 9999 and before year 0 still print correctly.

For time zones, the offset at each moment comes from the browser's built-in Intl time zone database. Turning a local date back into a timestamp tries every offset the zone used around that day and keeps the ones that give the same wall-clock time back: one match is a normal time, two mean the clocks went back and the time happened twice, and none mean the clocks jumped over it.

Batch conversion reads the CSV with a quote-aware parser that keeps every cell as written, converts the chosen column row by row, and leaves the new cells empty when a value is blank or cannot be read, listing the first few such rows with the reason. The CSV is then rebuilt with quoting only where a comma, quote or line break needs it.

Common use cases

  • Reading created_at values in a database export to see when records were really made
  • Checking whether a token or a signed link with an expiry time has already expired
  • Lining up log lines from servers in different zones by converting them all to UTC
  • Adding readable date columns to a CSV of webhook events before sharing it with a non-developer
  • Working out the exact timestamp for a scheduled start, such as 09:00 in Tokyo on launch day
  • Telling a millisecond value from a second value when an API's documentation does not say

How to use this tool

  1. Glance at the clock at the top if you just need the current timestamp, and press Copy next to the unit you want.
  2. To read a timestamp, type or paste it into Timestamp to date. Check the unit line under the box and change the unit if the guess is wrong.
  3. Pick an extra zone in Also show in to see the same moment where a colleague, a customer or a server is.
  4. To go the other way, type a date and time into Date to timestamp and choose the zone it was written in.
  5. For many values, paste them one per line or load a CSV, pick the timestamp column, set the zone for the local column and press Convert batch.
  6. Check the summary and the preview, then press Download to save the CSV with its two new columns.

Example

1700000000, unit detected, Also show in set to Asia/Kathmandu, on a device whose zone is America/New_York

1700000000

Read as seconds (10 digits before any decimal point).

UTC                             2023-11-14T22:13:20Z        Tuesday    2023-W46-2
This device (America/New_York)  2023-11-14T17:13:20-05:00   Tuesday    2023-W46-2
Asia/Kathmandu                  2023-11-15T03:58:20+05:45   Wednesday  2023-W46-3

In milliseconds: 1700000000000

Tips for best results

  • If a date comes out in 1970 or in a year far in the future, the unit is wrong. Set it by hand and the dates fall into place.
  • Use the UTC column for sorting and comparing; the local column is for people reading the file.
  • When writing a date to convert, include an offset such as +01:00 if you know it. It removes any doubt about clock changes.
  • A five-digit number such as 45244 in a spreadsheet is usually a spreadsheet date serial, not Unix time: 45244 is 14 November 2023 as a serial but 12:34:04 on 1 January 1970 as seconds.
  • Store timestamps in a text column in spreadsheets so long values are not shown or saved in scientific notation.

Edge cases to watch

Detection by length cannot tell a millisecond value from early 1970 from a second value. 86400000 means 1970-01-02 as milliseconds, but its eight digits are read as seconds, giving 1972-09-27. Data from that period needs the unit set by hand.

A column that mixes units is read value by value when detection is on. The summary lists how many values were read in each unit; if more than one appears unexpectedly, set the unit for the whole column.

Values saved in scientific notation, such as 1.7E+12, may already have lost their last digits before reaching this page. They are converted as written and counted in the summary so you can go back to the source.

Unix time has no leap seconds: every day is exactly 86,400 seconds long. A time written as 23:59:60 cannot be converted, and differences across a leap second are one second shorter than atomic time.

A local time with no zone is not a moment. 2026-10-25 01:30 in London happened twice, at 1792888200 (+01:00) and 1792891800 (+00:00), and both are shown rather than one being picked for you.

Common errors and how to fix them

"... is a date, not a timestamp. Use the Date to timestamp section to turn it into seconds."
A date such as 2026-01-01 was typed in the timestamp box. Paste it into Date to timestamp instead, together with its zone.
"Read as seconds, ... falls outside the dates JavaScript can represent"
The number is too large for the unit in use, usually a millisecond or nanosecond value forced to seconds. Switch the unit back to detect or choose the right one.
"This local time does not exist in Europe/Paris."
The clocks jumped over that time, for example from 02:00 straight to 03:00 on 29 March 2026. Use a time before or after the jump, or write the offset you mean, such as 2026-03-29 02:30+01:00.
"... holds binary bytes, which a CSV or a plain list of timestamps never has."
A workbook or an archive was picked instead of text. Export the sheet to CSV in the program that made it, then load the exported file.
Some rows have empty new columns after Convert batch.
Those cells were blank or not numbers. The list above the preview gives the row numbers and reasons, such as "not a number" for a value like n/a.

Best practices

  • Store and exchange timestamps in UTC and convert to local time only for display.
  • Record the unit in column names, such as created_at_ms, which saves the next person from guessing.
  • Prefer ISO 8601 with an offset when people will read the value and Unix time when programs will compare it.
  • Keep the original timestamp column when adding readable dates, so the exact value stays available.

Where the digit thresholds come from

The cut-offs follow from what each unit can reach. The largest 11-digit number, 99999999999, read as seconds is 5138-11-16T09:46:39Z, so any realistic date counted as seconds has 11 digits or fewer. The smallest 12-digit number, 100000000000, read as milliseconds is 1973-03-03T09:46:40Z, so millisecond values from March 1973 onward have 12 to 14 digits. The same reasoning repeats a thousand times larger for microseconds and again for nanoseconds.

The rule fails only for small values near 1970 in the finer units, which is why the unit menu exists and why the page always says which unit it used.

Negative timestamps and the 2038 limit

Moments before 1970 are negative. -14182940 is 1969-07-20T20:17:40Z, the time usually given for the first Moon landing, and -1 is the last second of 1969. Both convert normally here.

2147483647 is 2038-01-19T03:14:07Z, the largest value a signed 32-bit integer can hold. Programs and file formats that store Unix time in 32 bits run out at that second; this converter does its arithmetic with arbitrary-size whole numbers and is not affected, but it is a good value to test your own systems with.

Frequently asked questions

Does a Unix timestamp have a time zone?

No. It names one instant for the whole world; a zone only matters when the instant is written as a calendar date and time. That is why the same timestamp shows a Tuesday in New York and a Wednesday in Kathmandu.

Why are there two answers for some dates?

When clocks go back for the end of daylight saving time, an hour of local times happens twice. Each occurrence is a different instant with its own timestamp, so both are shown with their offsets.

Can I convert timestamps in microseconds or nanoseconds without losing digits?

Yes. Values are handled as exact whole numbers, so 1700000000123456789 comes out as 2023-11-14T22:13:20.123456789Z with all nine decimals.

Why does the ISO week sometimes belong to the neighbouring year?

ISO weeks start on Monday, and week 1 is the week that holds the year's first Thursday. So Sunday 3 January 2021 is 2020-W53-7, and Monday 30 December 2024 is already 2025-W01-1. The week column is worked out from the date in each row's own zone, which is why two rows can show different weeks for one timestamp.