Time Converter

Professional time converter with UNIX timestamp support, timezone conversion, duration calculator, and ISO 8601 formatting. Modern harmonized UI with quick examples.

Time Converter

Convert between timestamps and dates, calculate durations across time zones

Quick Examples

UTC

Selected TZ (UTC)

Local (UTC)

ISO 8601 (UTC)

Unix Timestamp to Date Converter

A Unix timestamp (also called epoch time) is the number of seconds elapsed since January 1, 1970 00:00:00 UTC. It is the standard time representation in programming: database records, API responses, JWT expiration claims, server logs, and file metadata all use this format.

This free epoch converter auto-detects whether your timestamp is in seconds, milliseconds, or nanoseconds, and converts it instantly to any timezone with DST-safe handling.

How to convert a Unix timestamp

  1. Paste a Unix timestamp (seconds or milliseconds) into the input field.
  2. The tool auto-detects the unit and displays the converted date and time.
  3. Select a target timezone for localized output.
  4. Use the duration calculator to find the difference between two timestamps.
  5. Copy the formatted result in ISO 8601 or your preferred format.

Unix timestamp in JavaScript

  • Get the current timestamp in milliseconds: Date.now()
  • Get the current timestamp in seconds: Math.floor(Date.now() / 1000)
  • Convert a timestamp to a Date object: new Date(timestamp) (pass milliseconds)
  • Convert a Date to a timestamp: date.getTime() or +date

Common Unix timestamps

  • 0: January 1, 1970 00:00:00 UTC (the Unix epoch)
  • 1000000000: September 9, 2001 01:46:40 UTC
  • 1700000000: November 14, 2023 22:13:20 UTC
  • 2147483647: January 19, 2038 03:14:07 UTC (32-bit Unix time limit)

Seconds vs milliseconds vs nanoseconds

  • Seconds: Standard Unix time (10 digits today). Used by most Unix/Linux APIs and databases.
  • Milliseconds: Used by JavaScript Date.now(), Java, and most modern web APIs (13 digits today).
  • Nanoseconds: Used by high-precision systems, Go's time.UnixNano(), and some databases (19 digits).

Whether you are debugging API responses, inspecting JWT expiration claims, analyzing server logs, or working with date math in any language, this free epoch to date converter is an essential bookmark for any developer.

Zulu time, UTC, military time and Discord timestamps

Zulu time is simply UTC written in aviation and military notation: 1430Z means 14:30 UTC, with Z for the zero meridian. Military time is the 24-hour clock (14:30 instead of 2:30 PM), and converting it to standard time is just a matter of subtracting 12 from hours above 12. Server logs, flight data and NATO communications all use these formats because they remove every timezone ambiguity.

Discord timestamps are Unix epoch seconds wrapped in Discord's markup: <t:1757500000:F> renders as a full date in each reader's local timezone. Convert any date to epoch seconds with this tool, wrap it in <t:...:F> (or :R for "in 2 hours" relative style), and paste it into your message: everyone sees it in their own timezone automatically.

Frequently Asked Questions

What is a Unix timestamp?

A Unix timestamp (epoch time) is the number of seconds elapsed since January 1, 1970 00:00:00 UTC. It is the standard machine-readable time format used in databases, API responses, JWT tokens, and server logs, because it is timezone-independent and easy to compare.

How do I know if a timestamp is in seconds or milliseconds?

Count the digits: current timestamps have 10 digits in seconds (Unix standard), 13 in milliseconds (JavaScript Date.now(), Java), and 19 in nanoseconds (Go, high-precision systems). This converter auto-detects the unit from the digit count.

What is the year 2038 problem?

Systems storing Unix time as a signed 32-bit integer overflow at timestamp 2147483647, which is January 19, 2038 03:14:07 UTC. After that moment, affected systems wrap around to 1901. Modern 64-bit systems are not affected.

How do I convert a Unix timestamp to a date in JavaScript?

Use new Date(timestamp * 1000) if the timestamp is in seconds, or new Date(timestamp) if it is already in milliseconds. Then format it with toISOString() for ISO 8601 or toLocaleString() for a localized string.

Free forever, no ads, no tracking. Support the project