Copied!
Unix (s) —
Unix (ms) —
UTC —
Local —
Developer Tool

Unix Timestamp Converter

Convert Unix seconds, milliseconds and ISO dates in your browser. View UTC, India (IST), Qatar and other time zones, or convert a batch of log timestamps.

⚡ Waiting…

Auto uses magnitude to suggest a unit; select Seconds or Milliseconds when you know the source. ISO dates without an offset use UTC. Precision: one millisecond.

Timestamp → Date
Date → Timestamp
Pick a date & time

Seconds—
Milliseconds—
UTC—
Date Math
Add / subtract time

Days mean 24 hours. Months and years use the UTC calendar, clamping to the last day of the target month.

Result timestamp — Enter a timestamp above first
ISO —

Batch Unix timestamp converter

Check timestamps from logs or API responses together. Paste one value per line, choose the input unit, and download the results as CSV.

Up to 500 non-empty lines and 50,000 characters. Auto uses the same magnitude rule as the single converter. ISO dates without an offset use UTC. Import CSV timestamp columns as text to preserve long numbers.

Paste values or load the example to get started.

Convert epoch time without mixing up units

  1. Paste a numeric timestamp or an ISO date into the converter above.
  2. Select Seconds or Milliseconds when you know which your log or API uses. Auto is a suggestion based on magnitude.
  3. Choose a display time zone, then copy the UTC date, ISO value or timestamp. For a local date, use the separate date-to-timestamp field and its time-zone selector.
InputUnitsUTC result
0Seconds1970-01-01 00:00:00
-1Seconds1969-12-31 23:59:59
1700000000Seconds2023-11-14 22:13:20
1700000000123Milliseconds2023-11-14 22:13:20.123
2024-01-01T05:30:00+05:30ISO date2024-01-01 00:00:00

UTC, IST and local dates

The instant 2024-01-01T00:00:00Z is Unix 1704067200. It displays as 05:30 in India and 03:00 in Qatar. A Unix timestamp identifies an instant; the time zone changes how that instant is displayed. Some locations change their offset during the year.

Current Unix time in code

JavaScript: Math.floor(Date.now() / 1000). Python: import time; int(time.time()). Enter a timestamp above and open the code examples for its exact millisecond value in JavaScript, Python, PHP, Go or Rust.

Read how GetPDFMint handles service data. The conversion itself runs in your browser.

Try a timestamp example

Load an example into the converter. These values include the Unix epoch and the signed 32-bit boundary.

Unix timestamp questions

What is a Unix timestamp?

Unix time counts seconds from 1970-01-01 at 00:00:00 UTC. Negative values represent earlier instants. Unix time does not count leap seconds; this converter rejects a seconds field of 60.

Are Unix timestamps seconds or milliseconds?

Both forms are used. One second is 1,000 milliseconds. Auto suggests seconds below an absolute magnitude of 100 billion and milliseconds at or above that threshold. The number alone cannot identify its unit: select an explicit unit for old millisecond values or far-future seconds. A trailing .0 does not change the inferred unit.

How do I convert a timestamp to IST or another time zone?

Paste the timestamp and choose the display time zone. India (IST) uses Asia/Kolkata; Qatar uses Asia/Qatar. Changing the display time zone shows the same instant in that zone and does not change the Unix value. The date-to-timestamp field has a separate selector for interpreting a local date.

Why is a local date rejected when the clocks change?

Daylight-saving transitions can skip a local time or make it occur twice. The date picker reports these cases instead of choosing an instant silently. For a repeated time, enter an ISO date with an explicit offset in the main input, such as 2024-11-03T01:30:00-04:00.

Can I convert multiple timestamps at once?

Yes. Paste one timestamp or ISO date per line in the batch converter, up to 500 non-empty lines and 50,000 characters. Blank lines are ignored. Each row reports a result or a specific error. The first 100 rows are previewed, and the CSV download includes every row.

How are my timestamps processed?

Conversions run in your browser. Batch input is not added to the URL or sent to a conversion server. A shareable link contains the single timestamp and selected time zone, so anyone you share it with can read them. The site records usage events; see the privacy policy for service-data details.

What precision and date range are supported?

Values must resolve exactly to a whole millisecond. Fractional seconds are supported to that precision; microseconds and nanoseconds are not accepted as separate units. The main converter uses the browser Date range and accepts expanded ISO years. The date picker accepts years 0001 through 9999. Code examples may have narrower language-specific ranges.

How does date math handle months and years?

Seconds through weeks use elapsed durations; one day is 24 hours. Whole months and years use the UTC calendar and clamp to the final day of the target month. For example, one month after 2024-01-31 is 2024-02-29. This is different from adding local calendar days across a daylight-saving change.

What is the Year 2038 problem?

The largest signed 32-bit Unix seconds value is 2147483647, which is 2038-01-19 at 03:14:07 UTC. Software using that representation needs a wider type. This converter supports later dates within its stated range.

Date to Unix timestamp examples

Each example gives the timestamp for midnight UTC. Use the converter above for a different time or timezone.

Unix timestamp converter · Year 2038 problem explained

💬 Feedback