⏰ Unix Timestamp to Date Converter

Convert Unix timestamps to human-readable dates instantly

🔍 Convert Unix Timestamp to Date

Enter Unix timestamp (seconds or milliseconds)

Human-Readable Date
ISO 8601 Format
Unix Timestamp (milliseconds)
Unix Timestamp (seconds)

How to Convert Unix Timestamp to Date

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.

Why Convert Unix Timestamp to Date?

Seconds vs Milliseconds

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.

Code Examples

JavaScript

const timestamp = 1618592259657; const date = new Date(timestamp); console.log(date.toISOString()); // 2021-04-16T18:30:59.657Z

Python

import datetime timestamp = 1618592259 date = datetime.datetime.fromtimestamp(timestamp) print(date.isoformat()) # 2021-04-16T18:30:59

Common Use Cases

Frequently Asked Questions

What is the Unix epoch?

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.

How do I know if my timestamp is in seconds or milliseconds?

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.

Can I convert dates back to Unix timestamps?

Yes! Use our Date to Unix Timestamp converter to convert dates back to timestamps.

💙

Support TechConverter

Get $200 free DigitalOcean credit or sponsor us on GitHub!