Unix Timestamp & Epoch Converter — ISO 8601
Free epoch & Unix timestamp converter: timestamp to date and ISO 8601 (UTC or any time zone), date to epoch. Detects s, ms, µs and ns.
How it works
- Auto-detects seconds (~10 digits), milliseconds (~13), microseconds (~16), and nanoseconds (~19). Convert to timestamp and Use now write seconds. The date picker is local time; relative time compares to now. The Time zone selector shows the converted timestamp in any zone and re-renders the result when you pick another one.
- Current Unix time (seconds)
- —
- Current UTC
- —
- Interpreted unit
- —
- Seconds
- —
- Milliseconds
- —
- UTC (ISO 8601)
- —
- Local time
- —
- In the selected time zone
- —
- Relative
- —
Batch convert
Paste timestamps or log lines, one per line. The first 9–19 digit number on each line is converted (seconds, milliseconds, microseconds, or nanoseconds). Up to 500 lines.
| Input | Detected unit | UTC (ISO 8601) | Time in the selected time zone |
|---|
About Unix timestamps
What is Unix time?
Unix time, also called epoch time or POSIX time, is the number of seconds since 1970-01-01T00:00:00Z, not counting leap seconds.
This page is an epoch converter and Unix time converter in your browser. Digit length picks the unit (seconds, ms, µs, ns). Convert date to Unix timestamp or the reverse. Local time, UTC ISO 8601, and relative time are shown together.
Unix timestamp to ISO 8601
ISO 8601 / RFC 3339 writes a moment as YYYY-MM-DDTHH:MM:SSZ in UTC, or with an offset such as +01:00 for a local zone. The converter above shows the UTC ISO 8601 value.
The examples below all use the timestamp 1700000000 (2023-11-14T22:13:20Z).
| Format | Example |
|---|---|
| ISO 8601, UTC (seconds) | 2023-11-14T22:13:20Z |
| ISO 8601, UTC with milliseconds | 2023-11-14T22:13:20.000Z |
| ISO 8601 with offset (Europe/Warsaw) | 2023-11-14T23:13:20+01:00 |
| Date only | 2023-11-14 |
- JavaScript
new Date(1700000000 * 1000).toISOString() // "2023-11-14T22:13:20.000Z"- Python
datetime.fromtimestamp(1700000000, tz=timezone.utc).isoformat() # '2023-11-14T22:13:20+00:00'- Bash (GNU)
date -u -d @1700000000 +%Y-%m-%dT%H:%M:%SZ- Bash (macOS/BSD)
date -u -r 1700000000 +%Y-%m-%dT%H:%M:%SZ- PostgreSQL
SELECT to_char(to_timestamp(1700000000) AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"');
Get the current Unix timestamp
- JavaScript
Math.floor(Date.now() / 1000)- Python
int(time.time())- SQL
EXTRACT(EPOCH FROM now()) -- PostgreSQL UNIX_TIMESTAMP() -- MySQL- Bash
date +%s date -d @1700000000- Go
time.Now().Unix()- Java
Instant.now().getEpochSecond()- PHP
time()- C#
DateTimeOffset.UtcNow.ToUnixTimeSeconds()- Rust
SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs()
Example timestamps
Click a timestamp to fill the converter above and convert it. Values in UTC (ISO 8601).
| Timestamp | Date (UTC, ISO 8601) | Meaning |
|---|---|---|
| 1970-01-01T00:00:00Z | The epoch itself — start of Unix time | |
| 1970-01-01T02:30:00Z | Small value — first day of Unix time | |
| 2001-09-09T01:46:40Z | The famous one-billion seconds moment | |
| 2023-11-14T22:13:20Z | November 2023 | |
| 2038-01-19T03:14:07Z | 32-bit limit (Year 2038 problem) | |
| 2023-11-14T22:13:20Z | Same moment as 1700000000 in milliseconds (13 digits) |
Seconds cheat sheet
| Period | Seconds |
|---|---|
| 1 minute | 60 |
| 1 hour | 3600 |
| 1 day | 86400 |
| 1 week | 604800 |
| 30 days | 2592000 |
| 1 year (365 days) | 31536000 |
| 1 year (365.2425 days avg) | 31556952 |
Unix timestamp FAQ
- What is a Unix timestamp?
- A Unix timestamp, also called epoch time or POSIX time, is the number of seconds since 1970-01-01T00:00:00Z, not counting leap seconds.
- How do I tell seconds from milliseconds?
- About 10 digits → seconds, 13 → milliseconds, 16 → microseconds, 19 → nanoseconds. Convert to timestamp and Use now write seconds.
- What is the Year 2038 problem?
- Signed 32-bit Unix time overflows on 19 January 2038. This page uses JavaScript numbers, so it is not limited to 32-bit seconds.
- How do I get the current Unix timestamp in code?
- In JavaScript use Math.floor(Date.now() / 1000). In Python use int(time.time()). In PostgreSQL use EXTRACT(EPOCH FROM now()). In MySQL use UNIX_TIMESTAMP().
- How do I convert a date to a Unix timestamp?
- Pick a local date and time, then click Convert to timestamp. The tool writes seconds since 1970-01-01T00:00:00Z and shows UTC as ISO 8601 plus relative time.
- What date is Unix timestamp 9000?
- Unix timestamp 9000 is 1970-01-01T02:30:00Z — two and a half hours after the epoch, still the first day of Unix time. Small numbers like this are plain seconds since 1970-01-01T00:00:00Z.
- Why does a small number convert to a date in 1970?
- Unix time counts seconds from 1970-01-01T00:00:00Z, so every small value points to a moment near the epoch. A recent date needs a 10-digit seconds value or a 13-digit millisecond value, such as 1700000000 and 1700000000000.
- Does a Unix timestamp depend on the time zone?
- No. A Unix timestamp is always the number of seconds since 1970-01-01T00:00:00Z, so it does not depend on any time zone. Only its display as a local date does. Use the Time zone selector to see the same timestamp anywhere in the world.
- How do I convert a Unix timestamp to ISO 8601?
- Paste it into the converter: the UTC (ISO 8601) field shows the result, e.g. 1700000000 → 2023-11-14T22:13:20Z. In JavaScript use new Date(ts * 1000).toISOString().