Unix Timestamp Converter

Convert Unix seconds or milliseconds to UTC and local dates, or a local date to Unix time. Supports negative timestamps and millisecond precision; runs in your browser.

Unix Timestamp Converter

Convert seconds or milliseconds to UTC and device-local dates, or convert a local date back to Unix time.

Changing the unit reinterprets the timestamp digits; it does not rescale the input. Seconds accept up to three decimal places; milliseconds require an integer. Device timezone: Device timezone.

Current Unix time (s)

—

From the device clock; not synchronized to a time server.

Current device-local time

—

Unix → Human

Zero is the epoch. Negative values represent earlier instants. Use digits without commas, hex or exponent notation.

ISO 8601 (UTC)
—
UTC
—
Device local
—
Relative estimate
—

Relative time is rounded; a month means 30 days and a year 365 days, not calendar arithmetic.

Human → Unix

Interpreted in Device timezone; this field has no UTC offset. Calendar years 0001–9999 and millisecond precision are supported.

Unix (s)
—
ISO 8601 (UTC)
—
UTC
—

Nonexistent local times during timezone jumps are rejected. If a time occurs twice, JavaScript selects the earlier instant. Use the timestamp direction when you already know the exact instant.

Steps

How to use

  1. Select seconds or milliseconds according to the source data.
  2. Enter a timestamp to inspect UTC and device-local dates, or enter a calendar time in the displayed device timezone.
  3. Correct any validation error, then copy the date summary or timestamp. Reset clears its own panel.
Examples and use cases
  • 1700000000 seconds → 2023-11-14T22:13:20.000Z.
  • 1700000000123 milliseconds → 2023-11-14T22:13:20.123Z.
  • -0.001 seconds → 1969-12-31T23:59:59.999Z.
Privacy, limits and tool details

Key facts

Timestamp input
Seconds with up to three decimal places, or integer milliseconds; optional minus sign; at most 64 characters
Timestamp range
Inclusive ±8,640,000,000,000,000 milliseconds, the JavaScript Date range
Local calendar input
Years 0001–9999; device timezone; up to millisecond precision
Output
ISO UTC, UTC text, device-local text, timestamp and approximate relative time
Unit changes
Reinterpret timestamp digits; do not rescale the input
Timezone transitions
Nonexistent local times rejected; repeated local times select the earlier instant
Current time
Device clock; no time-server synchronization
Cost and account
Free; no account required
Privacy

Privacy and processing

Processing method: A browser-side helper validates decimal timestamps, parses millisecond values exactly with integer arithmetic, and uses JavaScript Date for UTC and device-local displays. Local calendar input is checked before and after conversion.

Privacy model: Inputs stay in current tab memory and are not uploaded or saved by the tool. The interactive region is masked for Clarity; analytics omit entered timestamps and dates. Copy places output on your clipboard.

Limitations

Limitations

  • No microsecond or nanosecond precision, leap-second input, arbitrary timezone selector or UTC-offset date input.
  • Timestamp output can use expanded years; local calendar input is limited to 0001–9999.
  • Repeated local times resolve to the earlier instant; the interface does not choose the later occurrence.
  • Relative months and years are fixed approximate spans, not calendar arithmetic.
  • Live time depends on the device clock and browser update scheduling; downstream systems can have smaller timestamp ranges.
Features

Benefits

Explicit units

Choose the source unit instead of guessing from digit count.

Validated conversion

Out-of-range timestamps and nonexistent local times show errors rather than invalid date output.

Millisecond precision

Fractional seconds, including negative values, retain up to three decimal places.

Tips

Pro tips

  • Confirm the documented unit; digit count is not a reliable unit detector.
  • Check the displayed device timezone before entering a local calendar time.
  • Use ISO UTC output for an exact instant rather than the approximate relative label.
Watch out

Common mistakes to avoid

  • Switching units and expecting the timestamp input to rescale automatically.
  • Treating the local date field as a UTC field or pasting a Z suffix into it.
  • Assuming this converter proves that every downstream system supports dates after 2038.

Sources

Detailed Unix Timestamp Converter guide

Convert Unix timestamps to dates

ToolMint's free Unix Timestamp Converter turns seconds or milliseconds since the Unix epoch into an ISO 8601 UTC string, a UTC display and a device-local display. It also converts a date and time entered in your device timezone back into a timestamp. Use it to inspect log times, API fields and stored event dates. No account is required; conversion runs in the browser.

Unix timestamp zero identifies 1970-01-01T00:00:00Z. Negative values identify earlier instants. A timestamp identifies an instant; the timezone affects how that instant is displayed as a calendar date and clock time. Confirm the unit supplied by your API or data source before converting.

Inputs, outputs and limits

Direction Accepted input Result
Unix to human, seconds Decimal digits, optional minus sign, up to three decimal places ISO UTC, UTC text, device-local text and a relative estimate
Unix to human, milliseconds Decimal integer with an optional minus sign The same date displays, at millisecond precision
Human to Unix Local calendar date and time, years 0001–9999, optional seconds and up to three fractional digits Timestamp in the selected unit, ISO UTC and UTC text

The timestamp field accepts at most 64 characters, including surrounding whitespace. Leading and trailing whitespace are trimmed; separators inside a number are rejected. Do not enter commas, hexadecimal, exponent notation, a plus sign, incomplete decimals or units such as ms in the field. Millisecond input must be an integer. The tool does not round additional fractional digits.

Timestamp input supports JavaScript Date's inclusive range of ±8,640,000,000,000,000 milliseconds, equivalent to ±8,640,000,000,000 seconds. Dates beyond the four-digit year range can appear in timestamp output with an expanded ISO year, but the local calendar field is restricted to years 0001–9999. These are separate input limits.

How to use the converter

  1. Select Seconds or Milliseconds according to your source data.
  2. Enter a timestamp in Unix → Human, then review ISO UTC and device-local output. Invalid input shows an error and clears that direction's results.
  3. Alternatively, enter Local date & time in Human → Unix. Check the displayed device timezone before interpreting the result.
  4. Copy the timestamp-to-date summary or the date-to-timestamp value. Each panel has its own Reset button.

Use current fills both inputs from the same device-clock reading and preserves milliseconds. It is a convenience sample, not a clock-synchronization service. The live clock and relative estimate update while the component is mounted; a background browser tab may throttle updates.

Changing the unit leaves the timestamp digits unchanged and reinterprets them in the new unit. It does not multiply or divide the input automatically. The local calendar value stays unchanged, and its timestamp output is expressed in the newly selected unit. Watch for a validation error when switching fractional seconds to integer milliseconds.

Seconds versus milliseconds

Multiply a seconds value by 1,000 to obtain milliseconds; divide milliseconds by 1,000 to obtain seconds. When the millisecond value is not divisible by 1,000, the seconds representation contains a fraction. For example, 1700000000123 milliseconds becomes 1700000000.123 seconds without discarding precision.

Digit count alone cannot establish the unit. Short values near the epoch, negative values and dates far from the present break rules based on ten versus thirteen digits. Select the documented unit rather than guessing from length.

Input Selected unit ISO UTC result
0 Seconds 1970-01-01T00:00:00.000Z
-1 Seconds 1969-12-31T23:59:59.000Z
-0.001 Seconds 1969-12-31T23:59:59.999Z
1700000000 Seconds 2023-11-14T22:13:20.000Z
1700000000123 Milliseconds 2023-11-14T22:13:20.123Z
1700000000 Milliseconds 1970-01-20T16:13:20.000Z

These examples demonstrate conversion behavior; they do not infer the meaning of an unlabeled field.

UTC and the device timezone

ISO output ends in Z, indicating UTC. The device-local display uses the browser environment's timezone rules. The local calendar field has no offset selector and is not an ISO string parser: do not paste a Z suffix or +04:00 offset into it.

For the same instant, 2023-11-14T22:13:20Z in UTC is 2023-11-15T02:13:20 in Asia/Dubai. Entering that local time in a browser configured for Dubai produces 1700000000 seconds. Entering it in a browser configured for another timezone may produce a different instant.

Timezone jumps create two important cases. The tool rejects a local time that does not exist, instead of silently shifting it. When a local time occurs twice, JavaScript chooses the earlier instant. For an exact known instant during a repeated hour, use its timestamp in the other direction and compare the resulting offset. The tool does not offer arbitrary timezone selection or a choice between repeated occurrences.

A Unix timestamp describes one instant, while a cron expression describes a recurring schedule. For repeated jobs, use the Cron Expression Generator to build a five-field Unix schedule and preview matching times in local time or UTC. Neither tool installs or runs jobs. Check the timezone and supported syntax in the scheduler that will execute the job.

JavaScript conversion examples

// Known milliseconds to an ISO UTC string.
const milliseconds = 1700000000123
const date = new Date(milliseconds)
if (Number.isFinite(date.getTime())) {
  console.log(date.toISOString()) // 2023-11-14T22:13:20.123Z
}

// An explicit UTC date to Unix milliseconds.
const unixMilliseconds = new Date('2023-11-14T22:13:20.123Z').getTime()

// Whole Unix seconds, when your application requires them.
const wholeSeconds = Math.floor(unixMilliseconds / 1000)

The last expression discards fractional seconds by flooring. ToolMint retains up to three decimal places instead, including for negative instants. Use your application's required convention; do not assume truncation, flooring and preserving fractions are interchangeable.

Precision, leap seconds and the 2038 boundary

JavaScript Date represents integer milliseconds and does not model leap seconds. This converter is not for microseconds, nanoseconds, atomic time or elapsed-time benchmarking. Device clocks can be adjusted, so the live counter should not be treated as a monotonic timer.

The largest signed 32-bit integer is 2,147,483,647. Interpreted as Unix seconds, it is 2038-01-19T03:14:07Z; the following second requires a value beyond that integer range. The converter can display both values because its Date range is larger. That does not prove that a database, operating system, API or downstream client supports them. Check the actual storage type and library limits rather than assuming every modern system is unaffected.

Relative output is an approximate, rounded description. Its month means 30 days and its year 365 days. Use the ISO result for an exact instant; do not use the relative label to calculate calendar deadlines.

The tool keeps both inputs in the current component's memory. It does not upload them, fetch pasted destinations or save them to local storage. Each Reset clears its own input; refreshing or closing the page clears both. The interactive region is masked for Clarity, and conversion analytics do not include entered timestamps or dates. Copy places the selected output on your clipboard; Share uses the tool-page link rather than the entered values.

Use JSON Formatter to inspect timestamp fields in a JSON payload, URL Query Parser to examine timestamps carried in ordered URL parameters, or Text Diff Checker to compare text exports. These tools solve different tasks; they do not choose a timestamp unit or timezone for you. Find more everyday tools in the Utilities collection.

Sources

References checked October 8, 2026:

Frequently asked questions

Zero is 1970-01-01T00:00:00.000Z. Negative timestamps represent earlier instants. Zero is valid input, while an empty field produces no result.

Use the unit documented by your data source. The same digits identify different instants in the two modes; length alone does not reliably identify the unit. Changing modes reinterprets the timestamp input without rescaling it.

Yes. Seconds allow an optional minus sign and up to three decimal places. Milliseconds require an integer. Additional fractional digits, commas, exponent notation, hexadecimal and incomplete decimals are rejected.

No. It uses the device timezone shown in the interface and does not accept a UTC offset. ISO output ends in Z and represents UTC. The same local calendar digits can identify different instants on devices with different timezone settings.

A nonexistent local time is rejected instead of being shifted silently. If the time occurs twice, JavaScript chooses the earlier instant. Use a known timestamp in the other direction when you need to identify an exact instant.

Timestamp input supports the inclusive JavaScript Date range of plus or minus 8,640,000,000,000,000 milliseconds and integer-millisecond precision. Local calendar input is restricted to years 0001–9999. Microseconds, nanoseconds and leap-second input are not supported.

Yes, within its stated Date range. The signed 32-bit Unix-seconds maximum is 2,147,483,647, corresponding to 2038-01-19T03:14:07Z. Conversion here does not establish support in a database, operating system or API with a smaller range.

The tool keeps inputs in the current tab and does not upload them or save them to local storage. Reset clears its own panel, and refreshing or closing the page clears both. Analytics omit entered values; Copy uses your clipboard and Share shares the tool-page link.
Last updated October 8, 2026 7 min read Works in browser Privacy notes