Unix Timestamp Converter
Convert Unix timestamps to local time, UTC and any IANA time zone with a custom format, watch a live epoch clock, and parse dates or date strings back to epoch.
Unix Timestamp Converter — Convert a Unix epoch into local time, UTC, any IANA time zone, ISO 8601, a custom token format like YYYY-MM-DD HH:mm:ss, and a relative phrase such as "3 minutes ago" — seconds, milliseconds, microseconds and nanoseconds are detected automatically. A live clock shows the current Unix timestamp with a copy button, and the reverse direction turns a date picker or an arbitrary date string (ISO 8601, RFC 2822) into epoch seconds, milliseconds, and optionally microseconds and nanoseconds. Everything runs locally in your browser.
What is Unix Timestamp Converter?
A Unix timestamp converter that turns epoch time into human-readable dates and back, entirely in your browser. Paste a Unix epoch and it auto-detects seconds, milliseconds, microseconds or nanoseconds by magnitude, then shows the detected unit, a live relative phrase like "3 minutes ago," your local time, UTC, and any IANA time zone you pick from the Time zone dropdown, plus a copyable ISO 8601 string and a custom token format (YYYY, MM, DD, HH, mm, ss, SSS, 12-hour hh/h with A/a, and the Z offset) rendered client-side. A live current Unix timestamp ticks at the top with its own copy button. The reverse direction takes a date-and-time picker or an arbitrary date string (ISO 8601, RFC 2822, common formats) and produces epoch values in seconds and milliseconds — and, with the display option on, microseconds and nanoseconds. Developers, DevOps engineers, and anyone debugging logs, APIs, databases, or token/cookie expiry use it to convert Unix time across time zones and precisions.
How to use Unix Timestamp Converter
- Read the live current Unix timestamp at the top and copy it whenever you need "now" as epoch seconds.
- To convert a timestamp to a date, type or paste a Unix epoch into the Unix epoch field (or click Now); seconds, milliseconds, microseconds and nanoseconds are detected automatically.
- Open the ⚙ settings to pick any IANA time zone for the readable output, edit the custom format tokens (e.g. YYYY-MM-DD HH:mm:ss), and toggle microsecond/nanosecond display.
- Read the results — detected unit, relative time, local time, UTC, your chosen time zone, ISO 8601 and the custom-format string — and copy any of them.
- To convert a date to a timestamp, paste an ISO 8601 or RFC 2822 date string into the Date string field, or use the Date & time (local) picker.
- Copy the generated Epoch (seconds) and Epoch (milliseconds) — plus Epoch (microseconds) and Epoch (nanoseconds) when the display option is on.
Examples
Epoch seconds to ISO 8601
Input
1718000000
Output
2024-06-10T06:13:20.000Z
Custom format in a chosen time zone
Pick Asia/Tokyo in the ⚙ settings and set the format to YYYY-MM-DD HH:mm:ss Z; the custom-format output renders 1718000000 as the Tokyo wall-clock time with its +09:00 offset.
Parse a date string to epoch
Paste 'Mon, 10 Jun 2024 06:13:20 GMT' into the Date string field and the tool outputs Epoch (seconds) 1718000000 and Epoch (milliseconds) 1718000000000; turn on the display option to also get microseconds and nanoseconds.
Frequently asked questions
- Can I convert to a specific time zone?
- Yes. Open the ⚙ settings and choose any IANA time zone (for example America/New_York or Asia/Kolkata) from the dropdown; the readable output then shows that zone's time alongside your local time and UTC, and the custom-format string is rendered in the chosen zone.
- What format tokens does the custom format support?
- Client-side tokens include YYYY/YY (year), MM/M (month), DD/D (day), HH/H (24-hour), hh/h with A/a (12-hour and AM/PM), mm/m (minute), ss/s (second), SSS (milliseconds), Z/ZZ (UTC offset) and dddd/ddd (weekday). Wrap literal text in [square brackets].
- Does it support seconds, milliseconds, microseconds and nanoseconds?
- Yes. Converting an epoch to a date auto-detects the unit by magnitude (≥1e12 = ms, ≥1e15 = µs, ≥1e18 = ns), and the Detected unit field shows which was used. Converting a date to an epoch outputs seconds and milliseconds, and — with the display option enabled — exact microseconds and nanoseconds.
- What date strings can I parse?
- The Date string field accepts ISO 8601, RFC 2822 and other common date formats your browser understands. If a string can't be parsed it shows Invalid; leave it empty to use the Date & time picker instead.
- Is my data uploaded anywhere?
- No. Everything runs locally in your browser — no timestamps, dates or time-zone choices are sent to any server, so it works offline and keeps your data private.
Related tools
Base32 / Base58 Encode / Decode
Encode text to Base32 (RFC 4648) or Base58 (the Bitcoin alphabet) and decode either one back to text, fully UTF-8 safe and entirely in your browser.
Base64 Encode / Decode
Encode or decode Base64 (UTF-8 safe) with a URL-safe alphabet, optional padding, 64/76 line wrapping, live byte and character counts, and a hex/binary byte view.
Case Converter & Counter
Convert text between UPPERCASE, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and more, and count characters, words and lines.
Code Formatter & Minifier
Beautify or minify HTML, CSS and JavaScript instantly in your browser, with 2-space, 4-space or tab indentation and Terser-powered JavaScript compression.