Unix Timestamp Converter
Convert Unix timestamps (epoch seconds or milliseconds) to local, UTC and ISO 8601 dates — and back.
Data is processed only in your browser17962614622026-12-03 01:31:02ISO 86012026-12-03T01:31:02.000Z1796261462000How to use
Unix Timestamp Converter lets you quickly convert between Unix timestamps and human-readable dates in both directions. It supports second-level (10-digit) and millisecond (13-digit) timestamps with auto-detection, and displays local time, UTC, and ISO 8601 formats simultaneously.
How to use: Enter a Unix timestamp (e.g. 1700000000) or a date string (e.g. 2024-01-01 00:00:00) in the input field, and the tool shows the conversion result in real time. The top of the page displays a live "NOW" timestamp for quick copying.
Common Time Format Reference
| Format | Example | Description |
|---|---|---|
| Unix seconds | 1700000000 | 10-digit number, seconds since 1970-01-01 |
| Unix milliseconds | 1700000000000 | 13-digit number, milliseconds since 1970-01-01 |
| ISO 8601 | 2024-01-01T00:00:00Z | International standard date-time format |
| RFC 2822 | Mon, 01 Jan 2024 00:00:00 +0800 | Common in email headers and HTTP |
Timezone Conversion Example
Scenario: Your server log records a Unix timestamp 1700000000, and you want to know what time it is in Beijing (UTC+8).
Action: Enter 1700000000 in the input field. The tool shows local time (Beijing UTC+8), UTC time, and ISO format. Result: 2023-11-15 06:13:20 (Beijing time), 2023-11-14T22:13:20Z (UTC).
Troubleshooting
Wrong conversion result? Check whether you're using second-level (10-digit) or millisecond (13-digit) timestamps. If you have microsecond or nanosecond timestamps, divide by 1,000 or 1,000,000 first.
Date string not recognized? Use standard formats like 2024-01-01 00:00:00 or 2024-01-01T00:00:00Z. Avoid ambiguous formats like "Jan 1, 2024".
In code
A Unix timestamp counts seconds since 1970-01-01T00:00:00Z. JavaScript's Date expects milliseconds, so multiply a second-level value by 1000 first.
JavaScript
const ts = 1700000000; // seconds
new Date(ts * 1000).toISOString(); // "2023-11-14T22:13:20.000Z"
Math.floor(Date.now() / 1000); // current epoch secondsPython
from datetime import datetime, timezone
datetime.fromtimestamp(1700000000, tz=timezone.utc).isoformat()
# '2023-11-14T22:13:20+00:00'
int(datetime.now(timezone.utc).timestamp())Frequently asked questions
Which time formats are supported?
The timestamp field accepts 10-digit second-level and 13-digit millisecond Unix timestamps, detected automatically by digit count. The date field accepts YYYY-MM-DD HH:mm:ss (parsed in your local time zone) and ISO 8601 such as 2024-01-01T00:00:00Z.
How are time zones handled?
The tool displays local time zone, UTC, and ISO 8601 formats simultaneously. Conversions use your device's local time zone settings for accurate results.
Why is my timestamp conversion wrong?
Check whether you're using a second-level (10-digit) or millisecond (13-digit) timestamp. The tool auto-detects the length, but if you're using other units like microseconds, convert them first.