Unix Timestamp Converter
A Unix timestamp converter turns a Unix timestamp, the number of seconds since 00:00:00 UTC on 1 January 1970, into a readable date and time, and turns any date back into a timestamp. This epoch time converter shows the current Unix time live, detects seconds or milliseconds automatically, and works in UTC, your local time or any time zone. It is free, needs no signup, and runs entirely in your browser.
Search by city, abbreviation or UTC offset. Applies to the clock and both converters below.
1 Timestamp to date
- ISO 8601 (UTC)
- —
- ISO 8601 with offset
- —
- RFC 2822
- —
- HTTP date
- —
- Your local time
- —
- Unix seconds
- —
- Unix milliseconds
- —
- Relative
- —
- Calendar
- —
2 Date to timestamp
Read as UTC time.
- Unix milliseconds
- —
- ISO 8601 (UTC)
- —
- ISO 8601 with offset
- —
- Relative
- —
Everything is converted in your browser. Nothing you type is sent anywhere.
How to convert a Unix timestamp
-
1
Choose a time zone
Results are in UTC by default. Pick your local time or any other zone from the Time zone menu; it applies to the live clock and both converters.
-
2
Paste a timestamp
Type or paste a Unix timestamp into the Timestamp to date box. Seconds, milliseconds, microseconds and nanoseconds are detected from the number of digits, or you can set the unit yourself.
-
3
Read the date
The date and time appear instantly in the selected zone, with ISO 8601, RFC 2822, HTTP date, your local time, and how long ago or how far ahead it is.
-
4
Or convert a date back
In the Date to timestamp panel, pick a date and time to get its Unix timestamp in seconds and milliseconds.
-
5
Copy the result
Every value has its own copy button, including the live current timestamp.
What a Unix timestamp is
Unix time counts the seconds since the Unix epoch, 00:00:00 UTC on Thursday 1 January 1970. Every day is treated as exactly 86,400 seconds, so leap seconds are not counted: the timestamp simply repeats or skips when one occurs, and a Unix timestamp can always be turned into a calendar date with plain arithmetic. Dates before 1970 are negative numbers: -86400 is 00:00:00 UTC on 31 December 1969, exactly one day before the epoch.
Because the count starts from a moment defined in UTC, a timestamp has no time zone. 1700000000 is the same instant in Tokyo and in Chicago; only the clock reading differs. That's why databases, log files and APIs store time this way and convert to a local time only when showing it to a person.
Worked example: 1700000000
Pasting 1700000000 into the converter with the time zone set to New York gives these values. The 10 digits are detected as seconds:
Input 1700000000 (seconds, 10 digits)
Date and time Tuesday, 14 November 2023, 17:13:20 New York (EST, UTC-05:00)
ISO 8601 (UTC) 2023-11-14T22:13:20Z
ISO 8601 offset 2023-11-14T17:13:20-05:00
RFC 2822 Tue, 14 Nov 2023 17:13:20 -0500
HTTP date Tue, 14 Nov 2023 22:13:20 GMT
Milliseconds 1700000000000
Calendar Tuesday · day 318 of the year · ISO week 46
The same instant is 22:13:20 in UTC and 17:13:20 in New York, because New York is five hours behind UTC in November. Paste 1700000000000 instead and the 13 digits are detected as milliseconds, giving exactly the same date.
Notable Unix timestamps
| Timestamp | Date and time (UTC) | Why it matters |
|---|---|---|
0 | Thu, 1 Jan 1970 00:00:00 | The Unix epoch |
1000000000 | Sun, 9 Sep 2001 01:46:40 | The first 10-digit timestamp |
1234567890 | Fri, 13 Feb 2009 23:31:30 | Digits 1 to 9 then 0, celebrated by developers in 2009 |
1700000000 | Tue, 14 Nov 2023 22:13:20 | A round number, used in many test fixtures |
2000000000 | Wed, 18 May 2033 03:33:20 | The next billion |
2147483647 | Tue, 19 Jan 2038 03:14:07 | The largest signed 32-bit value: the Year 2038 limit |
-1 | Wed, 31 Dec 1969 23:59:59 | One second before the epoch |
-2147483648 | Fri, 13 Dec 1901 20:45:52 | Where a 32-bit timestamp wraps to after 2038 |
Seconds, milliseconds, microseconds and nanoseconds
The same instant can be written at different precisions, and APIs don't agree on which one to use. For dates in recent decades the digit count tells them apart, which is how the converter's auto-detect works:
| Unit | Digits today | 14 Nov 2023, 22:13:20 UTC | Typical source |
|---|---|---|---|
| Seconds | 10 | 1700000000 | Unix tools, PHP time(), JWT claims, most databases |
| Milliseconds | 13 | 1700000000000 | JavaScript Date.now(), Java, many JSON APIs |
| Microseconds | 16 | 1700000000000000 | Python time.time_ns() // 1000, PostgreSQL internals, tracing |
| Nanoseconds | 19 | 1700000000000000000 | Go UnixNano(), Prometheus, high-resolution logs |
JavaScript's Date object works in milliseconds, so a timestamp in seconds has to be multiplied by 1,000 first; forgetting that is the most common reason a date shows up as January 1970. To convert a raw duration rather than a date, such as 86,400 seconds into days, the time unit converter does it directly.
Get the current timestamp, or convert one, in code
| Language | Current Unix timestamp (seconds) | Timestamp to date (UTC) |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | new Date(1700000000 * 1000).toISOString() |
| Python | int(time.time()) | datetime.fromtimestamp(1700000000, tz=timezone.utc) |
| PHP | time() | gmdate('Y-m-d H:i:s', 1700000000) |
| MySQL | SELECT UNIX_TIMESTAMP(); | SELECT FROM_UNIXTIME(1700000000); |
| PostgreSQL | SELECT floor(extract(epoch FROM now())); | SELECT to_timestamp(1700000000); |
| Bash (Linux) | date +%s | date -u -d @1700000000 |
| macOS | date +%s | date -u -r 1700000000 |
| Go | time.Now().Unix() | time.Unix(1700000000, 0).UTC() |
| Java | Instant.now().getEpochSecond() | Instant.ofEpochSecond(1700000000) |
| C# | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.FromUnixTimeSeconds(1700000000) |
Python's examples need import time and from datetime import datetime, timezone; Java's need java.time.Instant. MySQL's FROM_UNIXTIME() and UNIX_TIMESTAMP('…') use the session time zone, so run SET time_zone = '+00:00'; first if you want UTC.
Where you'll meet Unix timestamps
- Login tokens. A JSON Web Token's
exp,iatandnbfclaims are Unix timestamps in seconds. The JWT decoder reads them for you and shows whether a token has expired. - API responses. Fields such as
created_atorupdatedoften hold a 10- or 13-digit number. Paste the response into the JSON formatter to read it, then paste each timestamp here. - Logs and databases. Server logs, cron output and database rows often store time as a Unix timestamp because it sorts correctly and needs no time zone.
- Caching headers. HTTP headers such as
ExpiresandLast-Modifieduse the HTTP date format, which the converter gives for any timestamp.
Frequently asked questions
A Unix timestamp, also called epoch time or POSIX time, is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970 (the Unix epoch), not counting leap seconds. For example, 1700000000 is 22:13:20 UTC on 14 November 2023. Because it is a single number with no time zone, it means the same instant everywhere, which makes it easy to store, compare and sort.
Paste it into the Timestamp to date box above. The converter detects whether it is in seconds or milliseconds and shows the date in UTC or your chosen time zone, plus ISO 8601, RFC 2822 and HTTP date formats. In code, JavaScript needs milliseconds, so use new Date(ts * 1000); PHP has date('Y-m-d H:i:s', $ts), and Python has datetime.fromtimestamp(ts, tz=timezone.utc).
Unix time is traditionally counted in seconds, a 10-digit number for any date between 2001 and 2286. JavaScript, Java and many APIs count milliseconds instead, a 13-digit number 1,000 times larger. Reading milliseconds as seconds puts the date tens of thousands of years in the future, and reading seconds as milliseconds lands in January 1970. The converter picks the unit from the digit count: up to 11 digits are seconds, 12 to 14 milliseconds, 15 to 17 microseconds and 18 to 20 nanoseconds.
A Unix timestamp has no time zone of its own: it counts seconds from a moment fixed in UTC, so the same number is the same instant everywhere. The converter shows results in UTC by default. Choose your local time or any other zone from the Time zone menu and the live clock and both converters switch to it, with that zone's daylight saving time applied for the date shown. When you convert a date to a timestamp, the date and time you pick are read in the selected zone.
Software that stores Unix time in a signed 32-bit integer can only count up to 2,147,483,647, which is 03:14:07 UTC on 19 January 2038. One second later the number overflows to -2,147,483,648, which such software reads as 20:45:52 UTC on 13 December 1901. Modern operating systems, languages and databases use 64-bit time, which lasts for billions of years, but old embedded devices, file formats and some database column types still have the limit.
Yes. In the Date to timestamp panel, pick a date and time and it gives the Unix timestamp in seconds and milliseconds, read in the time zone you have selected. You can also paste an ISO 8601 date such as 2023-11-14T22:13:20Z into the timestamp box. Around a daylight saving change, the converter tells you when a local time was skipped or happens twice, so you know which instant you got.
Every date on this page was cross-checked against a second, independent implementation, and the converter is tested on the edge cases that trip up quick scripts: negative timestamps before 1970, daylight saving gaps and overlaps, historical time zone offsets, and microsecond or nanosecond input.
Available for SaaS & AI automation projects → Hire me · Portfolio · Services
Was this tool helpful?
Rate it and leave a comment — takes 10 seconds, and genuinely helps decide what to fix or build next.