🔍 Convert Unix Timestamp to Date
Enter Unix timestamp (seconds or milliseconds)
Convert Unix timestamps to human-readable dates instantly
Enter Unix timestamp (seconds or milliseconds)
Converting a Unix timestamp to a date is simple: paste the timestamp (in seconds or milliseconds) and click Convert. Our tool automatically detects the format and displays the date in multiple formats including ISO 8601, UTC, and your local timezone.
Unix timestamps represent time as the number of seconds (10 digits) or milliseconds (13 digits) since January 1, 1970, 00:00:00 UTC (the Unix epoch). This format is universal across programming languages and databases.
Seconds (10 digits): Traditional Unix timestamp format used by PHP, Python, and Unix systems. Example: 1618592259
Milliseconds (13 digits): Used by JavaScript, Java, and modern APIs for millisecond precision. Example: 1618592259657
Our converter automatically detects which format you're using based on the number of digits.
const timestamp = 1618592259657; const date = new Date(timestamp); console.log(date.toISOString()); // 2021-04-16T18:30:59.657Z
import datetime timestamp = 1618592259 date = datetime.datetime.fromtimestamp(timestamp) print(date.isoformat()) # 2021-04-16T18:30:59
The Unix epoch is January 1, 1970, 00:00:00 UTC. All Unix timestamps count seconds or milliseconds from this moment. It was chosen as the starting point for Unix time when the Unix operating system was developed.
Count the digits: 10 digits = seconds, 13 digits = milliseconds. Our converter auto-detects this. If you get a date in 1970 or 50000+ years in the future, you're using the wrong format.
Yes! Use our Date to Unix Timestamp converter to convert dates back to timestamps.
Get $200 free DigitalOcean credit or sponsor us on GitHub!