Unix Timestamp Converter
Convert between Unix epoch time and human-readable dates — live clock, instant conversion.
Unix Timestamp Converter — What Is a Unix Timestamp?
A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC — known as the Unix epoch. It is the standard way computers represent time as a single integer, independent of timezone. For example, the Unix timestamp 1700000000 represents November 14, 2023 at 22:13:20 UTC. This converter converts between Unix timestamps and human-readable dates in both directions.
Current Unix Timestamp
The current Unix timestamp updates every second. In JavaScript: Math.floor(Date.now() / 1000). In Python: import time; int(time.time()). In PHP: time(). In Java: System.currentTimeMillis() / 1000L. In SQL: UNIX_TIMESTAMP() (MySQL) or EXTRACT(EPOCH FROM NOW()) (PostgreSQL).
Unix Timestamp to Human-Readable Date
To convert a Unix timestamp to a readable date: divide by 1000 if the timestamp is in milliseconds (JavaScript Date objects use milliseconds, not seconds). Enter the timestamp above and the converter shows both UTC and your local timezone. Common timestamps: 0 = Jan 1 1970, 1000000000 = Sep 9 2001, 2000000000 = May 18 2033.
Milliseconds vs Seconds Timestamps
Unix timestamps are traditionally in seconds (10 digits: e.g. 1700000000). JavaScript's Date.now() returns milliseconds (13 digits: e.g. 1700000000000). When a 13-digit timestamp is entered above, it is automatically detected as milliseconds. Many APIs return milliseconds — check whether your timestamp has 10 or 13 digits.
Frequently Asked Questions
new Date(timestamp * 1000).toISOString(). In Python: datetime.fromtimestamp(ts).