Skip to content

Timestamp Converter

Convert between Unix timestamps and calendar dates with millisecond precision. View UTC, local time and other useful representations instantly.

Loading workspace…

How to use

  1. Choose a direction: Select Timestamp to Date or Date to Timestamp. Start with the built-in English example if needed.
  2. Enter a value: Enter Unix seconds or milliseconds, or choose a date and precise time. Calendar input can use UTC or your browser's local time zone.
  3. Review the results: See Unix seconds, milliseconds, ISO 8601, UTC and local time. Advanced mode also supports ISO input with an explicit offset and additional IANA time zone display.
  4. Copy a value: Copy any result individually, or use Now and Load sample to populate the input.

Support and limitations

  • Supports explicitly selected Unix seconds and milliseconds. Seconds allow up to three decimal places, while milliseconds must be integers. Units are never inferred from the number of digits.
  • Supports structured calendar date and millisecond-precision time input for four-digit Gregorian years 0001–9999. Advanced ISO input requires Z or an explicit ±HH:MM offset.
  • Calendar input can use UTC or the browser's local time zone. Advanced mode can display an additional valid IANA time zone but does not accept arbitrary IANA-zone local dates as input.
  • Negative timestamps are supported within JavaScript Date's range of ±8,640,000,000,000,000 milliseconds. Some representable timestamps cannot be entered through the four-digit calendar controls.
  • Leap seconds are unsupported. Nonexistent local times caused by daylight saving transitions are rejected, while ambiguous repeated times require an explicit ISO offset. Historical and future zone rules depend on browser time zone data.
  • All output formats describe the same instant. Display zones affect human-readable time, while the selected zone for calendar input determines its interpretation. Processing stays in your browser without uploads or persistent storage.

Frequently asked questions

What is the difference between Unix seconds and milliseconds?

Unix seconds count elapsed seconds since January 1, 1970 at 00:00:00 UTC. Unix milliseconds count thousandths of a second from the same instant. The tool requires an explicit unit instead of guessing from the value's length.

Does timestamp conversion preserve milliseconds?

Yes, within the supported range. The tool represents instants in integer milliseconds and accepts up to three decimal places for Unix seconds. For example, 1704067200.123 seconds equals 1704067200123 milliseconds.

What is the difference between UTC, local time and IANA time zones?

UTC is a common reference for timekeeping. Local time uses your browser's configured time zone, while IANA zones such as Asia/Shanghai and America/New_York provide named regional rules. Changing a result's display zone does not change the underlying instant; the selected zone for calendar input affects how that date is interpreted.

Why are some local dates or times rejected?

Daylight saving transitions can make a local time nonexistent or cause the same clock time to occur twice. The tool rejects these cases rather than silently choosing a potentially incorrect timestamp. Use Advanced mode with an ISO 8601 value containing an explicit offset to resolve ambiguity.