Convert Unix timestamps to dates and dates to timestamps. Supports seconds and milliseconds.
A Unix timestamp (or Epoch time) is the number of seconds elapsed since January 1, 1970, 00:00:00 UTC. It provides a timezone-agnostic way to represent any point in time as a single integer, widely used in databases, APIs, and programming.
1777477562| Event | Timestamp | Date |
|---|---|---|
| Unix Epoch | 0 | 1970-01-01 |
| 1 Billion | 1000000000 | 2001-09-09 |
| Y2K38 Bug | 2147483647 | 2038-01-19 |
| 2 Billion | 2000000000 | 2033-05-18 |
Math.floor(Date.now() / 1000)import time; int(time.time())time()date +%sFormula
Unix Timestamp = (Date − 1970-01-01T00:00:00Z) in seconds | Milliseconds = Timestamp × 1000Unix Timestamp = Seconds elapsed since the Unix Epoch (1970-01-01 00:00:00 UTC)
Milliseconds = Timestamp multiplied by 1,000 — used by JavaScript and many modern APIs
Max 32-bit = 2,147,483,647 seconds → 2038-01-19 (Y2K38 problem)
Worked Example
Convert 2024-01-01 00:00:00 UTC to Unix timestamp
Did you know? Unix time was invented at Bell Labs in 1969. The original epoch of January 1, 1970 was chosen simply because it was a convenient recent date — not for any mathematical reason.
Sources
Convert text to ASCII codes and back. Supports decimal, hex, binary, and octal formats.
Convert width/height to aspect ratios, scale dimensions, and generate responsive embed CSS for any layout.
Calculate required internet bandwidth based on devices and activities in your household.
Encode and decode Base64 strings. Convert text for data URIs, APIs, and safe data transmission.
Create CSS border-radius with visual controls for each corner. Generate circles, pills, and custom shapes.
Create CSS box shadows with multiple layers, live preview, and copy-ready code.