Convert Unix Timestamp to Date
A Unix timestamp is the number of seconds elapsed since the Unix epoch — 00:00:00 UTC on 1 January 1970. To turn that integer into a readable calendar date you add those seconds to the epoch and render the result in a chosen time zone.
The converter below detects the unit automatically (10-digit values are treated as seconds) and shows the date in UTC, your local zone, ISO 8601, and more. Everything updates the moment you paste — no button to press.
Worked example
Input 1700000000 converts to Tue, 14 Nov 2023, 22:13:20 UTC:
- UTC
- Tue, 14 Nov 2023, 22:13:20 UTC
- ISO 8601 (UTC)
- 2023-11-14T22:13:20.000Z
- RFC 3339 (UTC)
- 2023-11-14T22:13:20Z
- RFC 2822
- Tue, 14 Nov 2023 22:13:20 +0000
- Unix seconds
- 1700000000
- Unix milliseconds
- 1700000000000
- Microseconds
- 1700000000000000
- Nanoseconds
- 1700000000000000000
- Hex (seconds)
- 0x6553f100
- Binary (seconds)
- 1100101010100111111000100000000
Code examples
JavaScript
const d = new Date(1700000000000); console.log(d.toISOString()); // 2023-11-14T22:13:20.000Z Math.floor(Date.now() / 1000); // current epoch
Python
from datetime import datetime, timezone print(datetime.fromtimestamp(1700000000, tz=timezone.utc)) # 2023-11-14T22:13:20.000Z import time; int(time.time())
Go
package main
import ("fmt"; "time")
func main() {
fmt.Println(time.Unix(1700000000, 0).UTC()) // 2023-11-14T22:13:20.000Z
fmt.Println(time.Now().Unix())
}See all 14 languages on the code examples pages.
Frequently asked questions
- What is a Unix timestamp?
- It is a single integer counting the seconds since 1 January 1970 00:00:00 UTC, independent of time zone. It is the most portable way to store an instant in time.
- How do I know if my number is in seconds or milliseconds?
- Seconds are typically 10 digits (until the year 2286), milliseconds 13 digits, microseconds 16, and nanoseconds 19. The tool auto-detects by length but you can override the unit.
- Does the converted date depend on my time zone?
- The underlying instant is absolute, but its calendar representation differs by zone. We show both UTC and your local time so there is no ambiguity.