About the Unix Timestamp Converter
Convert Unix epoch timestamps to dates in your local time zone and UTC, or turn a date into a timestamp. Seconds, milliseconds, microseconds and nanoseconds are detected automatically.
Key features
- Live current Unix time in seconds and milliseconds
- Timestamp to date in your time zone and UTC
- Date to timestamp, from local time or UTC
- Auto-detects seconds, milliseconds, microseconds and nanoseconds
- ISO 8601, RFC 2822 and relative time
- One-click copy for every value
Convert epoch time to dates and back
Developers meet Unix timestamps everywhere: logs, databases, APIs, JWT tokens and cookies. Paste a timestamp to see the date in your local time zone and UTC, or pick a date to get its timestamp.
Timestamp sizes
| Digits (today) | Unit | Example | Common in |
|---|---|---|---|
| 10 | Seconds | 1700000000 | Unix, PHP, Python, SQL |
| 13 | Milliseconds | 1700000000000 | JavaScript, Java, JSON APIs |
| 16 | Microseconds | 1700000000000000 | PostgreSQL, Python datetime |
| 19 | Nanoseconds | 1700000000000000000 | Go, InfluxDB |
1700000000 is 14 November 2023, 22:13:20 UTC.
Notable timestamps
| Timestamp | Date (UTC) |
|---|---|
| 0 | 1 Jan 1970 00:00:00 |
| 1000000000 | 9 Sep 2001 01:46:40 |
| 1234567890 | 13 Feb 2009 23:31:30 |
| 2000000000 | 18 May 2033 03:33:20 |
| 2147483647 | 19 Jan 2038 03:14:07 (32-bit limit) |
Getting the current timestamp in code
| Language | Code |
|---|---|
| JavaScript | Math.floor(Date.now() / 1000) |
| Python | int(time.time()) |
| PHP | time() |
| Java | Instant.now().getEpochSecond() |
| Go | time.Now().Unix() |
| SQL (PostgreSQL) | extract(epoch from now()) |
| Bash | date +%s |
Related tools
Decode token expiry times with the JWT Decoder, or calculate the days between two dates with the Date Difference Calculator.
How to use the Unix Timestamp Converter
- Open the tool. It's ready to use immediately, with nothing to install.
- Enter your entries, numbers or settings, or keep the defaults.
- Press the main button (spin, roll, start or generate) and watch the result.
- Repeat as often as you like; results are generated fresh each time in your browser.