Unix Timestamp Converter

Convert Unix timestamps (seconds or milliseconds since epoch) to readable dates, or convert any date back to a Unix timestamp. Shows UTC, local time, and relative time. Everything runs in your browser.

Developer Tools

Unix Timestamp → Date
Date → Unix Timestamp
Current Timestamp

What This Tool Does

Converts Unix timestamps (seconds or milliseconds) to human-readable dates and vice versa, in your browser. Supports all major time zones and displays ISO 8601 format alongside local time.

Who This Is For

  • Backend developers debugging timestamps in API responses, database records, or log files
  • Data engineers investigating time-related bugs across different time zones
  • Anyone who encounters a 10- or 13-digit number in a JSON payload and needs to know what date it represents
  • Security analysts correlating log timestamps across systems

Example: Input: A Unix timestamp like 1735689600 → Output: Human-readable: Wed Jan 01 2025 00:00:00 UTC with ISO 8601, local time, and time-zone offset all shown

How to Use the Timestamp Converter

  1. Unix → Date: Enter a Unix timestamp (seconds or milliseconds since January 1, 1970 UTC) in the top field. The human-readable date and time appear instantly.
  2. Date → Unix: Enter a date and time in the lower section. The converter outputs the corresponding Unix timestamp in both seconds and milliseconds.
  3. The tool shows the time in both UTC and your local timezone simultaneously, so you can cross-reference both.

The tool automatically detects seconds (10-digit) or milliseconds (13-digit) timestamps, and pairs with the URL Encoder when timestamps appear in query parameters. The tool automatically detects whether your timestamp is in seconds (10 digits) or milliseconds (13 digits) based on the value range.

What Is a Unix Timestamp?

A Unix timestamp is the number of seconds (or milliseconds) that have elapsed since the Unix Epoch: midnight on January 1, 1970, UTC. It is the standard way most programming languages and databases represent a moment in time as a single number.

Unix timestamps are:

FormatExampleNotes
Seconds174035520010 digits, standard Unix time
Milliseconds174035520000013 digits, used by JavaScript Date.now()
Microseconds174035520000000016 digits, used by PostgreSQL, high-precision logs
Nanoseconds174035520000000000019 digits, used by Go, Linux kernel, InfluxDB

Common Timestamp Tasks

Get the current Unix timestamp

Language / ToolCode
JavaScriptMath.floor(Date.now() / 1000)
Pythonimport time; int(time.time())
PHPtime()
SQL ServerDATEDIFF(s, '1970-01-01', GETUTCDATE())
PostgreSQLEXTRACT(epoch FROM now())
MySQLUNIX_TIMESTAMP()
Bashdate +%s

Convert timestamp to readable date

LanguageCode
JavaScriptnew Date(ts * 1000).toISOString()
Pythondatetime.fromtimestamp(ts, tz=timezone.utc)
PHPdate('Y-m-d H:i:s', $ts)

The Year 2038 Problem

Unix timestamps stored as 32-bit signed integers overflow on January 19, 2038 at 03:14:07 UTC. After that point, the value wraps to a large negative number, causing dates to be interpreted as December 13, 1901.

Modern systems use 64-bit timestamps which are good until the year 292,277,026,596 — well beyond any practical concern. If you are maintaining older C code, embedded systems, or databases with 32-bit integer timestamp columns, migration is worthwhile before 2038.

Time and Scheduling Workflow

Timestamp conversion connects to several related tools:

Related Tools

Related Guides

Frequently Asked Questions

How do I know if a timestamp is in seconds or milliseconds?
Count the digits. A 10-digit number is seconds; 13 digits is milliseconds. The current Unix time in seconds is about 1.74 billion — so anything starting with 1 and having 10 digits is likely seconds. This tool detects the unit automatically.
Why is my timestamp off by exactly one hour?
You are likely seeing a DST (daylight saving time) offset. The timestamp itself is correct in UTC — the display difference depends on whether your local timezone is in DST. Always store and compare timestamps in UTC.
What is the Unix Epoch?
The Unix Epoch is January 1, 1970 at 00:00:00 UTC. Every Unix timestamp is a count of seconds (or sub-second units) from that moment. The choice of 1970 was arbitrary — it was simply the start of the year when Unix was being developed.
How do I convert a timestamp to ISO 8601 format?
In JavaScript: new Date(ts * 1000).toISOString() returns a string like 2026-02-24T08:00:00.000Z. In Python: datetime.fromtimestamp(ts, tz=timezone.utc).isoformat().
Can I convert a date string to a Unix timestamp?
Yes — use the Date → Unix section of this tool. Enter the date and time, and the tool returns both the seconds and milliseconds representation.
What is the maximum valid Unix timestamp for 32-bit systems?
2,147,483,647 — which corresponds to January 19, 2038. After that, 32-bit signed integers overflow. Modern systems use 64-bit timestamps which are effectively unlimited.