Developer GUIDE

Unix Timestamps and Timezone Conversion Guide

Convert seconds, milliseconds, and unambiguous calendar times while understanding UTC, timezone offsets, and daylight-saving ambiguity.

Updated About 2 min read
Open Timestamp Converter

What this tool does

Timestamp Converter converts Unix seconds or milliseconds into UTC, ISO 8601, browser-local time, and a selected timezone. It also converts an unambiguous calendar date/time into a Unix timestamp. All conversion uses native Date and Intl APIs, with no backend or date-library download.

Use it when reviewing an API response, interpreting log entries, checking expiry times, or comparing an event across timezones. A timestamp describes an instant; changing its display timezone does not change that instant.

How to use it

Select Unix timestamp and choose seconds, milliseconds, or automatic detection. Automatic mode recognizes typical 10-digit seconds and 13-digit milliseconds. Shorter, longer, or otherwise ambiguous values require an explicit unit. Negative timestamps are supported within JavaScript's Date range.

Select Calendar date/time to enter YYYY-MM-DDTHH:mm:ss, optionally followed by milliseconds and Z or an offset such as +09:00. A space may replace the T. Month/day-order strings such as 03/04/2024 are rejected rather than guessed. Calendar validity is checked, so February 30 does not silently roll into March.

An explicit offset determines the instant and takes precedence over the timezone selector. Without an offset, the selected timezone interprets the entered wall time. UTC is the default; the local timezone and other supported IANA zones are available.

Practical example

Convert 1704067200 as seconds. The ISO result is 2024-01-01T00:00:00.000Z. Entering 2024-01-01T09:00:00+09:00 produces the same instant. Selecting a different timezone changes the displayed calendar time, while the Unix values remain unchanged.

Use Use Current Time to capture the current instant. Each displayed format has a copy button. Unix seconds are floored to whole seconds; the milliseconds value retains subsecond precision. Relative time is approximate and calculated when conversion runs, not continuously updated.

Daylight-saving behavior and limits

Some wall times do not exist when clocks move forward, while others occur twice when clocks move backward. The converter rejects these gaps and overlaps. Resolve them by entering an explicit ISO offset rather than accepting a silent guess. For example, a repeated New York time can use -04:00 or -05:00, depending on which occurrence you intend.

Timezone rules and historical offsets come from the browser's Intl data and may vary across browser versions. Leap seconds are not supported. Human-readable input supports years 0001–9999, while numeric timestamps use the native Date range. Invalid or out-of-range input produces an error and preserves what you typed.

Privacy and related tools

Your timestamp and date input stay local. They are not uploaded, logged, tracked, stored in browser storage, or added to page URLs. Reset clears the workspace.

Use JSON Formatter to inspect timestamp fields in an API response, Regex Tester to extract dates from logs, and Encoder & Decoder when text first needs decoding.

Ready to try it?

Timestamp Converter

Convert seconds, milliseconds, and unambiguous calendar times while understanding UTC, timezone offsets, and daylight-saving ambiguity.

Open Timestamp Converter

Related tools

Related resources