privtools
Developers

Unix Timestamp Converter

Convert Unix epoch timestamps to human-readable dates and back — seconds or milliseconds, UTC and local time.

100% client-side — your data never leaves this tab

Loading tool…

What is Unix Timestamp Converter?

Unix Timestamp Converter converts epoch time to human-readable dates and back — supporting both seconds and milliseconds automatically. Enter a Unix timestamp or pick a date/time and get ISO 8601 UTC, local time, relative time, and copy-ready values for logs, APIs, and debugging. Live current-time display with one-click insert. 100% client-side.

Timestamp conversion runs entirely in-browser; no data is uploaded.

How to use Unix Timestamp Converter

  1. 1View the current Unix timestamp at the top — click Use now to convert it instantly.
  2. 2Enter a Unix timestamp (seconds or milliseconds) or switch to Date & time mode.
  3. 3Review converted formats: Unix seconds, Unix milliseconds, ISO UTC, local, and relative.
  4. 4Click Copy on any row to paste into logs, tickets, or code.

Examples

Unix seconds

Values below 13 digits are treated as seconds.

1700000000 → Wed Nov 14 2023 22:13:20 UTC

Unix milliseconds

1700000000000 → same instant, detected as milliseconds

Tips & common mistakes

  • API logs often use seconds (10 digits) while JavaScript Date.now() returns milliseconds (13 digits).
  • Use ISO 8601 UTC for database columns and API payloads — it avoids timezone ambiguity.
  • The relative field helps interpret log timestamps like in 2 hours or 3 days ago.
  • Pair with JSON Formatter when inspecting timestamp fields in API responses.

Who uses this tool?

  • Developers decoding epoch values from server logs and error reports.
  • Debugging JWT exp claims and API token expiry timestamps.
  • Converting database Unix columns to readable dates during incident response.
  • Students learning Unix time in systems programming and web development courses.

Frequently asked questions

What is a Unix timestamp?
A Unix timestamp (epoch time) is the number of seconds or milliseconds since January 1, 1970 00:00:00 UTC. It is widely used in APIs, databases, and log files.
Seconds vs milliseconds — how does the tool know?
Values with 13 or more digits are treated as milliseconds. Shorter values are treated as seconds. This matches common conventions in JavaScript and Linux systems.
What timezone is used for local time?
Local time uses your browser's timezone setting. UTC time is always shown separately for unambiguous reference.
Can I convert a date picker value to Unix time?
Yes. Switch to Date & time mode, pick a datetime, and copy Unix seconds or milliseconds from the output.
Is my timestamp data sent to a server?
No. All conversion happens locally in your browser.