Epoch Converter - Unix Timestamp to Date and Date to Timestamp
Convert any Unix timestamp to a human-readable date and time - or turn any date back into a timestamp - instantly, in any timezone. This epoch time converter supports every timestamp length: 10-digit (seconds), 13-digit (milliseconds), 16-digit (microseconds), and 19-digit (nanoseconds). No account needed, no rate limits. Just paste and convert.
Convert Timestamp to Datetime
Paste your Unix timestamp below and instantly see the corresponding date and time in any timezone.
Datetime to Timestamp Converter
Select any date and time to generate the corresponding Unix timestamp for your applications and databases.
The Current Epoch translates to:
| Date | Standard |
|---|---|
| 08/24/2026 @ 3:14 pm | UTC |
| 2026-08-24T15:14:37+00:00 | ISO 8601 |
| Mon, 24 Aug 2026 15:14:37 +0000 | RFC 822 ,1036 ,1123 ,2822 |
| Mon, 24 Aug 2026 15:14:37 UTC | RFC 2822 |
| 2026-08-24T15:14:37+00:00 | RFC 3339 |
What is a Unix timestamp?
A Unix timestamp - also called epoch time, POSIX time, Unix time, or a Linux timestamp - is the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC. This starting point is called the Unix epoch.
It's one of the most widely used ways to represent time in software because it's timezone-neutral, language-agnostic, and trivially easy to compare, sort, and do arithmetic on. A timestamp is just a number - no formatting ambiguity, no locale differences.
Example: The Unix timestamp 1700000000 corresponds to November 14, 2023, 22:13:20 UTC.
Seconds vs milliseconds vs microseconds - which do you have?
Not all Unix timestamps are the same length. The number of digits tells you the unit:
| Digits | Unit | Example | Typical use |
|---|---|---|---|
| 10 | Seconds | 1700000000 | Linux/Unix systems, most databases, APIs |
| 13 | Milliseconds | 1700000000000 | JavaScript (Date.now()), browser events, logs |
| 16 | Microseconds | 1700000000000000 | High-precision logging, financial systems |
| 19 | Nanoseconds | 1700000000000000000 | System clocks, Go's time.Now().UnixNano() |
This Unix timestamp converter auto-detects the format based on digit count, so you can paste any timestamp and get the right result without manually selecting the unit.
How to convert a Unix timestamp to a date (in common languages)
If you need to do this programmatically rather than with a tool, here are the one-liners for the most common languages and environments:
JavaScript
// Seconds to date
new Date(1700000000 * 1000).toISOString()
// → "2023-11-14T22:13:20.000Z"
// Milliseconds to date (Date.now() format)
new Date(1700000000000).toISOString()
// → "2023-11-14T22:13:20.000Z"Python
from datetime import datetime, timezone
# Seconds
datetime.fromtimestamp(1700000000, tz=timezone.utc)
# → datetime(2023, 11, 14, 22, 13, 20, tzinfo=datetime.timezone.utc)
# Milliseconds
datetime.fromtimestamp(1700000000000 / 1000, tz=timezone.utc)PHP
// Seconds
date('Y-m-d H:i:s', 1700000000);
// → "2023-11-14 22:13:20"MySQL
-- Seconds
SELECT FROM_UNIXTIME(1700000000);
-- → 2023-11-14 22:13:20Go
// Seconds
time.Unix(1700000000, 0).UTC()
// Nanoseconds
time.Unix(0, 1700000000000000000).UTC()How to convert a date to a Unix timestamp (in common languages)
Going the other way - turning a date, a datetime string, or a local time into a Unix timestamp - is where timezone bugs creep in. The epoch converter above reads your input in the timezone selected at the top of the page (UTC by default), so the timestamp you get encodes exactly the moment you see. In code, the timezone is your responsibility: build the date in UTC explicitly, or the resulting timestamp will be shifted by your machine's local offset. The one-liners below all produce 1700000000 for November 14, 2023 at 22:13:20 UTC:
JavaScript
// Specific date to Unix timestamp (seconds)
Math.floor(new Date("2023-11-14T22:13:20Z").getTime() / 1000)
// → 1700000000
// Current moment
Math.floor(Date.now() / 1000)Python
from datetime import datetime, timezone
# Specific date to Unix timestamp (seconds)
int(datetime(2023, 11, 14, 22, 13, 20, tzinfo=timezone.utc).timestamp())
# → 1700000000
# Current moment
import time; int(time.time())PHP
// Specific date to Unix timestamp (seconds)
strtotime("2023-11-14T22:13:20Z");
// → 1700000000
// Current moment
time();MySQL
-- Specific datetime to Unix timestamp
-- (interpreted in the session time zone; set it to UTC first
-- with SET time_zone = '+00:00' to get 1700000000)
SELECT UNIX_TIMESTAMP('2023-11-14 22:13:20');Go
// Specific date to Unix timestamp (seconds)
time.Date(2023, time.November, 14, 22, 13, 20, 0, time.UTC).Unix()
// → 1700000000FAQs
The current Unix timestamp changes every second, so the best way to check is to use the converter above - it shows the live count in seconds since January 1, 1970 UTC.
In code:
- JavaScript: Math.floor(Date.now() / 1000)
- Python: import time; int(time.time())
- PHP: time()
- Bash: date +%s
Enter the date and time in the Datetime to Timestamp converter above - it returns the Unix timestamp in seconds, reading your input in the timezone you've selected (UTC by default) and showing the GMT and local-time equivalents side by side. In code, build the date in UTC explicitly: JavaScript Math.floor(new Date("2023-11-14T22:13:20Z").getTime() / 1000), Python int(datetime(2023, 11, 14, 22, 13, 20, tzinfo=timezone.utc).timestamp()), PHP strtotime("2023-11-14T22:13:20Z") - all return 1700000000. Building the date in local time instead shifts the result by your timezone offset.