A
AracBox
Tools
All Tools

Developer Tools

Unix Timestamp Converter

View a Unix timestamp as local time, UTC and ISO 8601, or convert a local date and time to seconds or milliseconds.

Current Unix Timestamp
🔒 Verileriniz tarayıcınızda işlenir. Girdiğiniz bilgiler sunucuya gönderilmez.

About this tool

View a Unix timestamp as local time, UTC and ISO 8601, or convert a local date and time to seconds or milliseconds.

What is it?

A Unix timestamp is a numeric offset from the Unix epoch, 1970-01-01 00:00:00 UTC. This converter handles seconds and milliseconds in both directions.

How Do You Convert a Timestamp to a Date?

Choose Timestamp → Date and select seconds, milliseconds or Auto detect. For Date → Timestamp, enter a local date and time and choose the output unit.

  1. For Timestamp → Date, enter a number and choose seconds, milliseconds or Auto detect.
  2. Auto detect treats an absolute value of 1,000,000,000,000 or greater as milliseconds and smaller values as seconds.
  3. For Date → Timestamp, enter a date and time; the datetime-local field has no timezone and is interpreted in the browser’s local timezone.
  4. Review the local date, UTC, ISO 8601 and both Unix units; local display depends on the browser’s timezone.

Examples

  • 1750000000 seconds → 2025-06-15T15:06:40.000Z (ISO 8601); in Europe/Istanbul the local time is 18:06:40.
  • Europe/Istanbul local time 2025-06-15 18:06 → 1749999960 seconds or 1749999960000 milliseconds.

Common use cases

  • Compare an epoch value from an API response or log with a readable date.
  • Convert between APIs that expect seconds and JavaScript Date values that use milliseconds.
  • Inspect epoch-second claims such as iat or exp from a JWT as dates.

Technical details

  • Timestamp → Date accepts an explicit unit or Auto detect, which uses abs(value) >= 1e12. Finite decimals are accepted; JavaScript Date discards fractions below one millisecond.
  • Date → Timestamp interprets datetime-local in the browser’s local timezone; the field defaults to minute precision. Seconds use Math.floor; milliseconds use Date.getTime().
  • Timestamp → Date shows local time, UTC via toUTCString(), ISO 8601, seconds and milliseconds. The local date string uses Intl.DateTimeFormat with the tr-TR locale.
  • Negative epoch values are accepted. Empty, non-finite, invalid and out-of-range Date values fail; JavaScript Date is limited to ±8.64×10^15 milliseconds.
  • There is no timezone selector. The live “current timestamp” uses Date.now() in the browser.

Related concepts

Unix epoch Epoch seconds Epoch milliseconds Local timezone ISO 8601

What Is a Unix Timestamp?

A Unix timestamp is a numeric offset from the Unix epoch, 1970-01-01 00:00:00 UTC. This converter handles seconds and milliseconds in both directions.

Frequently Asked Questions

What is the difference between seconds and milliseconds?

Milliseconds are one thousandth of a second; JavaScript Date uses milliseconds.

What does Auto detect classify as milliseconds?

Absolute values of 1e12 or more are treated as milliseconds; smaller absolute values are treated as seconds. Choose the unit manually when a value is ambiguous.

Which timezone does Date → Timestamp use?

The datetime-local field has no timezone information and is interpreted in the browser’s local timezone. Timestamp → Date shows local and UTC values.

Are negative or decimal timestamps supported?

Finite negative and decimal numbers are accepted if the resulting date is within the JavaScript Date range. Seconds output is floored to an integer.

Related Tools