Unix Timestamp Converter

100% private

Free online Unix timestamp converter — convert epoch time to date and back. Supports seconds and milliseconds (13-digit), Discord timestamps, live clock.

Current Unix Time
1780764748seconds
1780764748291milliseconds

Timestamp → Date

Date → Timestamp

This free online Unix timestamp converter translates epoch timestamps to human-readable UTC and local dates in real time, and converts any date back to a Unix timestamp. It supports both second-precision (10-digit) and millisecond-precision (13-digit) timestamps, auto-detected from the input length. The live clock shows the current Unix epoch time updating in real time — useful for logging, debugging JWT exp claims, and building time-based database queries.

Discord uses Unix timestamps internally for all message and event times, and developers frequently search for a Unix timestamp converter for Discord to generate Discord's timestamp markdown syntax. This tool converts any timestamp to the numeric value Discord expects in its <t:TIMESTAMP:FORMAT> syntax. For Excel users, the unix timestamp converter formula is =(A1/86400)+DATE(1970,1,1) — paste the Unix timestamp in A1 and format the result as Date/Time. For timezone-specific conversion (Eastern Time, UTC, or any local timezone), the tool displays both UTC and your browser's local timezone automatically.

Whether you need to verify a specific timestamp like 1764581115, convert a date range to Unix timestamps for a time-series database query, decode a JWT exp claim, or use the epoch unix timestamp converter for Discord bot development, this tool handles all common cases with no server call, no rate limit, and no account required.

How It Works

  1. Paste a Unix timestamp (10-digit seconds or 13-digit milliseconds) to convert it to a human-readable date
  2. Or enter a date in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) to convert it to a Unix timestamp
  3. The tool auto-detects seconds vs. milliseconds based on the number of digits
  4. Results show both UTC and your local timezone — the live clock displays the current epoch time in real time

Features

  • Convert Unix epoch timestamp to UTC and local date/time
  • Convert any ISO 8601 date back to a Unix timestamp in seconds and milliseconds
  • Auto-detects 10-digit (seconds) and 13-digit (milliseconds) timestamps
  • Live clock showing current Unix epoch time, updating every second
  • Discord timestamp format output for <t:TIMESTAMP:FORMAT> markdown
  • Supports Eastern Time and all local timezones via browser locale
  • 100% browser-based using the JavaScript Date API — no server required

Examples

Timestamp to human date

Input

1717689600

Output

UTC: Wed, 06 Jun 2026 08:00:00 GMT
Local: depends on your timezone

13-digit millisecond timestamp

Input

1717689600000

Output

UTC: Wed, 06 Jun 2026 08:00:00 GMT
(auto-detected: milliseconds)

ISO date to timestamp

Input

2026-06-06T00:00:00Z

Output

1749168000 (seconds)
1749168000000 (milliseconds)

Common Use Cases

  • Converting Discord message timestamps to readable dates for bot development or moderation logging
  • Decoding JWT exp, iat, and nbf claims (Unix timestamps in seconds) to verify token expiry
  • Converting API response timestamps to local time for debugging
  • Building Discord bot timestamp markdown using <t:UNIX_TIMESTAMP:R> relative time syntax
  • Converting date ranges to Unix timestamp boundaries for time-series database queries

Developer Tips

  • A 13-digit timestamp is milliseconds — divide by 1000 to get seconds; a 10-digit timestamp is already in seconds
  • Discord timestamp markdown: <t:1717689600:F> for full date, <t:1717689600:R> for relative ("3 hours ago"), <t:1717689600:D> for date only
  • JWT exp and iat claims use second-precision Unix timestamps — multiply by 1000 before passing to JavaScript's new Date() constructor
  • Excel formula for Unix timestamp to date: =(A1/86400)+DATE(1970,1,1) — put the timestamp in A1 and format the result cell as Date/Time

Frequently Asked Questions

What is a Unix timestamp?
A Unix timestamp (also called epoch time or POSIX time) is the number of seconds elapsed since 00:00:00 UTC on January 1, 1970 — the Unix epoch. It is a language-agnostic, timezone-independent way to represent a point in time as a plain integer. Unix timestamps are used in databases, log files, APIs, file systems, JWT tokens, and programming languages because they are simple integers that sort, compare, and store efficiently.
What is the difference between a 10-digit and 13-digit Unix timestamp?
A 10-digit Unix timestamp represents seconds elapsed since the Unix epoch (e.g., 1717689600 for June 2026). A 13-digit timestamp represents milliseconds (e.g., 1717689600000). JavaScript's Date.now() and Java's System.currentTimeMillis() return 13-digit millisecond timestamps. Most Unix system tools, databases, JWT standards, and REST APIs use 10-digit second timestamps. This converter auto-detects precision from the digit count — 10 digits → seconds, 13 digits → milliseconds.
How do I convert a Unix timestamp for Discord?
Discord uses Unix timestamps in its <t:TIMESTAMP:FORMAT> markdown syntax for displaying formatted times in messages. To use it: get the Unix timestamp in seconds (10 digits) for your target date, then embed it in Discord as <t:1717689600:F> for a full date/time, <t:1717689600:R> for relative time ("in 3 days"), <t:1717689600:D> for date only, or <t:1717689600:T> for time only. If you have a millisecond timestamp (13 digits), divide by 1000 first — Discord expects second precision.
What is the Unix epoch and why January 1, 1970?
The Unix epoch — January 1, 1970, 00:00:00 UTC — was chosen by the designers of the Unix operating system in the early 1970s as a convenient reference point. It had no special significance; it was simply recent enough to keep timestamp values small at the time of Unix's design. Today, Unix timestamps fit in a 32-bit signed integer for all dates until January 19, 2038, after which 64-bit integers are required — this is known as the Year 2038 problem.
How do I get the current Unix timestamp in code?
In JavaScript: Math.floor(Date.now() / 1000) for seconds, or Date.now() for milliseconds. In Python: int(time.time()). In Go: time.Now().Unix(). In Bash: date +%s. In PostgreSQL: EXTRACT(EPOCH FROM NOW())::int. In MySQL: UNIX_TIMESTAMP(). In Java: System.currentTimeMillis() / 1000L for seconds. In C#: DateTimeOffset.UtcNow.ToUnixTimeSeconds().
What is the maximum Unix timestamp?
For 32-bit signed integers, the maximum Unix timestamp is 2,147,483,647, representing January 19, 2038 at 03:14:07 UTC — the Year 2038 problem. Systems still using 32-bit timestamp storage will overflow on that date. For 64-bit integers, the maximum Unix timestamp represents a date approximately 292 billion years in the future, far beyond any practical concern.