DateTimeTools
UTC

Unix Timestamp Converter

Convert Unix epoch timestamps (seconds, ms, µs, ns) to ISO-8601, RFC-3339, RFC-2822, and local time—or parse date strings back to Unix epoch.

Live Epoch: --

The DateTimeTools Unix Timestamp Converter is a bidirectional developer utility that converts Unix epoch numbers into human-readable ISO-8601, RFC-3339, RFC-2822, and local date strings—and converts date strings right back into Unix seconds and milliseconds.

Automatic Precision Detection

Developers frequently encounter timestamps at different resolutions across databases, APIs, and logs. When you paste a numeric timestamp, this converter automatically detects the unit by magnitude:

  • 10 digits (Seconds): Standard POSIX / Unix epoch (e.g., 1795765200).
  • 13 digits (Milliseconds): JavaScript Date.now(), Java System.currentTimeMillis(), and many JSON APIs.
  • 16 digits (Microseconds): PostgreSQL TIMESTAMP, Python time.time_ns() // 1000, and tracing spans.
  • 19 digits (Nanoseconds): Go time.Now().UnixNano(), Kubernetes, and OpenTelemetry logs.

Supported String Formats

You can also paste ISO-8601 (2026-11-27T07:40:00Z), RFC-3339 with timezone offsets (2026-11-27T15:40:00+08:00), or RFC-2822 / HTTP-Date (Fri, 27 Nov 2026 07:40:00 GMT) strings to inspect their exact 10-digit and 13-digit Unix equivalents.

Live Epoch Counter & One-Click Copy

A live ticking epoch counter sits right above the output grid so you can grab the current Unix second at any moment, or click Current Epoch to populate the input field immediately. Every output row includes a Copy button for fast pasting into SQL queries, curl commands, or test fixtures.

All parsing and formatting happen locally in your browser—ideal for inspecting sensitive production log timestamps without sending them to an external server.

Related Date & Time Tools

Frequently Asked Questions

How does it know if my Unix timestamp is in seconds, milliseconds, or microseconds?

It checks the magnitude of the number: ~10 digits is parsed as seconds, ~13 digits as milliseconds, ~16 digits as microseconds, and ~19 digits as nanoseconds.

Can I convert an ISO-8601 or RFC-3339 string back into a Unix timestamp?

Yes. Paste any valid ISO-8601 or RFC-3339 string (with Z or a numeric offset like +08:00) into the input box to get both 10-digit Unix seconds and 13-digit milliseconds.

Are timestamps I paste logged or sent to a server?

No. All parsing happens locally in your browser, so production log timestamps never leave your machine.