WEB TOOLS

Unix Timestamp Converter

Convert Unix timestamps in seconds or milliseconds and local date-time values in both directions.

Your input is not sent to a server. All processing is performed locally in your browser.

Unix Timestamp

Date & Time

The date and time are interpreted in your device's local time zone.

Convert Unix timestamps and local date-time values

Convert Unix timestamps in seconds or milliseconds to local date-time values and back again. Results include local time, ISO 8601, seconds, and milliseconds.

When this tool is useful

Read time values from server logs or APIs by converting Unix timestamps in seconds or milliseconds into a readable date and back. Date-time input uses your device time zone; compare it with the UTC output.

How to use

  1. To convert a timestamp, choose Seconds or Milliseconds, enter a decimal value, and click Convert to Date. Seconds support increments of 0.001 seconds; milliseconds must be whole numbers.
  2. To convert a date, enter a date and time in your device local time zone and click Convert to Timestamp. Invalid calendar dates and local times that are skipped or repeated during time-zone changes are rejected.
  3. Use Use Current Time to fill and convert the current moment.
  4. On success, focus moves to the results heading. Local time shows milliseconds and an explicit UTC offset alongside ISO 8601 (UTC) and the second/millisecond timestamps.
  5. Use Copy beside the value you need. If copying fails, a selectable text field containing only that result appears. Older results remain visible with stale styling after input changes but cannot be copied until reconverted.
  6. Clear All also works before conversion, with only an input present. Undo within 10 seconds restores the inputs, unit, and previous results.

Time zones

The date-time input is interpreted in your device local time zone. The local result includes milliseconds and a numeric UTC offset (for example UTC+09:00). ISO 8601 output uses Z for UTC, while a Unix timestamp represents the same instant independently of time zones. Your input is not sent to a server.

The JavaScript Date range and millisecond precision apply. Seconds may include up to three meaningful fractional digits (trailing zeros are allowed). A zero-only fractional part is also allowed for millisecond input. Inputs are never silently rounded or truncated.

FAQ

Does the timestamp use seconds or milliseconds?

Both are supported. Explicitly choose Seconds or Milliseconds before converting; the unit is not detected automatically.

What is the difference between seconds and milliseconds?

The same instant can be written as 1700000000 seconds or 1700000000000 milliseconds. JavaScript Date.now() returns milliseconds.

How are time zones handled?

The date-time input uses your device local time zone. The local result shows milliseconds and a minute-resolution UTC offset. ISO 8601 with Z uses UTC; timestamps represent the same instant independently of time zones.

Can I undo Clear All?

Yes. Clear All works even with only an input or changed unit. Undo within 10 seconds restores the previous inputs, unit, and results. Editing or converting again cancels the undo option.

What happens to old results when I edit an input?

The previous result stays visible for comparison but is marked stale and copying is disabled. A failed conversion also keeps the old result inactive until you convert successfully.

What if a clipboard copy fails?

A read-only text field is shown and selected with only the requested local date, ISO 8601, seconds, or milliseconds. Use your device copy command. Button labels and headings are excluded.

What if I edit or reconvert while copying?

Late completion or failure feedback from an obsolete copy request will not change messages or selection. With rapid consecutive copy requests, the last request takes precedence. An OS/browser clipboard write already started cannot be cancelled, so verify the pasted value if needed.

Can I convert dates before 1970?

Yes. Negative Unix timestamps represent dates before 1970 and are supported. For example, -0.001 seconds is one millisecond before the Unix epoch.

Which timestamp formats and precision are accepted?

Use decimal notation: seconds in steps of 0.001 and whole milliseconds. Scientific notation such as 1e3 and hexadecimal such as 0x10 are rejected. Sub-millisecond input is rejected rather than silently rounded.

What about daylight-saving changes?

Nonexistent local times and repeated local times during a device time-zone change receive distinct errors. Choose another time, or convert from a known Unix timestamp to inspect the desired instant.

Is my input sent to a server?

No. All conversion is performed locally in your browser.