Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates. Supports seconds, milliseconds, ISO 8601, and multiple timezones.
Timestamp → Date
Date → Timestamp
How to Use
- The live display at the top shows the current Unix timestamp updated every second.
- To convert a timestamp to a date: enter a Unix timestamp (seconds or milliseconds) in the left panel and click Convert.
- To convert a date to a timestamp: pick a date/time in the right panel and click Convert.
- Select your timezone in either panel for timezone-aware conversion.
Features
- Live current timestamp updated every second.
- Auto-detects seconds vs milliseconds timestamps.
- Outputs UTC, local time, and ISO 8601 format simultaneously.
- Timezone selector covering major world timezones.
- Copy any result value with one click.
- No server required — all calculations run in your browser.
Use Cases
- Debugging API responses that return Unix timestamps.
- Converting database DATETIME values to timestamps for queries.
- Checking when a JWT token was issued or expires (iat/exp claims).
- Log file analysis — converting log timestamps to readable dates.
- Scheduling cron jobs or events across different timezones.
FAQ
What is a Unix timestamp?
A Unix timestamp is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC (the Unix epoch). It is language- and timezone-independent, making it ideal for storing time in databases and APIs.
Seconds vs milliseconds — how do I tell them apart?
Timestamps in seconds are typically 10 digits (e.g. 1704067200). Millisecond timestamps are 13 digits (e.g. 1704067200000). This tool auto-detects by checking if the value is greater than 1e10.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now()/1000)
Python: import time; int(time.time())
PHP: time()
SQL: UNIX_TIMESTAMP() (MySQL) / strftime('%s','now') (SQLite)
What is the Year 2038 problem?
32-bit systems store Unix timestamps as signed integers, which overflow on January 19, 2038 at 03:14:07 UTC. Modern 64-bit systems and languages (including JavaScript) are not affected.