Free Unix Timestamp Converter

Convert epoch time to a readable date and back. Auto-detects seconds vs milliseconds.

Current Unix time
0 seconds
Timestamp to date
Date to timestamp
Enter a timestamp or a date

What is a Unix timestamp?

A Unix timestamp (epoch time) counts the seconds elapsed since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. APIs, databases and log files use it because it is timezone-independent and easy to compare and sort.

Seconds vs milliseconds

Most Unix tools and backend languages use seconds (10 digits today, such as 1700000000). JavaScript, Java and many mobile SDKs use milliseconds (13 digits, such as 1700000000000). This converter treats values of 12 digits or more as milliseconds.

Converting in code

JavaScript: new Date(ts * 1000).toISOString(). Python: datetime.fromtimestamp(ts, timezone.utc). Shell: date -r 1700000000 on macOS, date -d @1700000000 on Linux.

The year 2038 problem

Systems that store seconds in a signed 32-bit integer overflow on 19 January 2038 (2147483647). Use 64-bit integers for new work.

Need More Than a Browser Tool?

RestForge is a full API client for iPhone, iPad and Android: collections, environments, scripts and code generation.