Unix Timestamp Converter
Turn a Unix timestamp into a date, or a date into a timestamp, in any unit and time zone.
Unix timestamp converter
Timestamp to date
Date to timestamp
How to use this converter
- 1
Paste a timestamp. Leave the unit on Auto, or choose seconds, milliseconds, microseconds or nanoseconds yourself.
- 2
Read the dates. UTC and your local time are shown, plus any extra time zone you add. Every row has a Copy button.
- 3
Go the other way. Enter a date, a time and its time zone to get the timestamp in all four units.
Example
1700000000 seconds is 2023-11-14T22:13:20Z: 22:13:20 UTC, which is 17:13:20 in New York.
−1 second is 1969-12-31T23:59:59Z, one second before the epoch, and 9223372036854775807 nanoseconds (the largest signed 64-bit value) is 2262-04-11T23:47:16.854775807Z.
About Unix time
The Unix epoch
A Unix timestamp counts the time elapsed since the Unix epoch, 1970-01-01T00:00:00Z. Unix time treats every day as exactly 86,400 seconds, so leap seconds are not counted. A timestamp identifies an instant and has no time zone; the zone only matters when it is turned into a wall-clock date.
Common formats
| Unit | Digits today | Example (2023-11-14T22:13:20Z) |
|---|---|---|
| Seconds | 10 | 1700000000 |
| Milliseconds | 13 | 1700000000000 |
| Microseconds | 16 | 1700000000000000 |
| Nanoseconds | 19 | 1700000000000000000 |
How this converter works
Values are held as exact integers (BigInt), so a 19-digit nanosecond timestamp is never rounded through a floating-point number. Decimals are accepted up to the unit’s limit, such as 1700000000.123456789 seconds. Negative timestamps are dates before 1970: −1 millisecond is 23:59:59.999 on December 31, 1969. The supported range is the years 1 to 9999.
Auto-detect and ambiguity
Auto picks the unit from the size of the number: below 1011 it is seconds, below 1014 milliseconds, below 1017 microseconds, otherwise nanoseconds. A value in the last decade below a boundary, such as 50000000000, is a plausible date in two units (the year 3554 as seconds, 1971 as milliseconds). The tool then says so and shows the other reading; choose the unit yourself to settle it.
Precision of the timestamp and of the date
The date is shown with as many fractional digits as the timestamp has: three for milliseconds, six for microseconds, nine for nanoseconds. That is the precision of the number, not a claim about the clock that produced it.
The Year 2038 problem
Systems that store Unix time in a signed 32-bit integer run out of range after 2,147,483,647 seconds, which is 2038-01-19T03:14:07Z. One second later the value wraps to −2,147,483,648, which reads as 1901-12-13T20:45:52Z. Modern systems use 64-bit time, which lasts for hundreds of billions of years, but 32-bit fields still exist in older software, embedded devices and some file and database formats.
Code examples
Each snippet was run and printed the commented result.
JavaScript
new Date(1700000000 * 1000).toISOString()
// "2023-11-14T22:13:20.000Z"
Math.floor(Date.parse("2023-11-14T22:13:20Z") / 1000)
// 1700000000
Math.floor(Date.now() / 1000) // nowPython
from datetime import datetime, timezone
datetime.fromtimestamp(1700000000, tz=timezone.utc).isoformat()
# '2023-11-14T22:13:20+00:00'
int(datetime(2023, 11, 14, 22, 13, 20,
tzinfo=timezone.utc).timestamp())
# 1700000000Go
t := time.Unix(1700000000, 0).UTC() t.Format(time.RFC3339) // 2023-11-14T22:13:20Z t.Unix() // 1700000000 time.Now().Unix() // now
PHP
echo gmdate("c", 1700000000);
// 2023-11-14T22:13:20+00:00
echo strtotime("2023-11-14T22:13:20Z");
// 1700000000
echo time(); // nowSQL (SQLite)
SELECT datetime(1700000000, 'unixepoch');
-- 2023-11-14 22:13:20
SELECT CAST(strftime('%s', '2023-11-14 22:13:20') AS INTEGER);
-- 1700000000SQL (MySQL)
SET time_zone = '+00:00';
SELECT FROM_UNIXTIME(1700000000);
-- 2023-11-14 22:13:20
SELECT UNIX_TIMESTAMP('2023-11-14 22:13:20');
-- 1700000000Notable timestamps
| Timestamp | Seconds | UTC date and time |
|---|---|---|
| The epoch | 0 | 1970-01-01T00:00:00Z |
| One billion seconds | 1,000,000,000 | 2001-09-09T01:46:40Z |
| 1,234,567,890 | 1,234,567,890 | 2009-02-13T23:31:30Z |
| 1,500,000,000 | 1,500,000,000 | 2017-07-14T02:40:00Z |
| 1,700,000,000 | 1,700,000,000 | 2023-11-14T22:13:20Z |
| 1,800,000,000 | 1,800,000,000 | 2027-01-15T08:00:00Z |
| 2,000,000,000 | 2,000,000,000 | 2033-05-18T03:33:20Z |
| 2³¹ − 1 (32-bit limit) | 2,147,483,647 | 2038-01-19T03:14:07Z |
| 2³² (unsigned 32-bit limit) | 4,294,967,296 | 2106-02-07T06:28:16Z |
| One second before the epoch | -1 | 1969-12-31T23:59:59Z |
| −2³¹ (32-bit lower limit) | -2,147,483,648 | 1901-12-13T20:45:52Z |
Units at a glance
| Unit | Symbol | Per second | Typical source |
|---|---|---|---|
| Seconds | s | 1 | Unix time(), JWT exp, HTTP cache headers |
| Milliseconds | ms | 1,000 | JavaScript Date.now(), Java currentTimeMillis() |
| Microseconds | µs | 1,000,000 | Python datetime precision, databases |
| Nanoseconds | ns | 1,000,000,000 | Go UnixNano(), Linux clocks |
Timestamps and time zones
A timestamp is a moment in time and has no time zone. The zone only matters when you display it as a calendar date and clock time. Two people in different cities who look at the same timestamp see different local times for the same instant. When you store or exchange times, store the timestamp (or an ISO 8601 string with an offset) and convert for display.
| Timestamp | New York | London | Tokyo |
|---|---|---|---|
| 1700000000 | 14 Nov 2023, 17:13 | 14 Nov 2023, 22:13 | 15 Nov 2023, 07:13 |
| 1750000000 | 15 Jun 2025, 11:06 | 15 Jun 2025, 16:06 | 16 Jun 2025, 00:06 |
| 1800000000 | 15 Jan 2027, 03:00 | 15 Jan 2027, 08:00 | 15 Jan 2027, 17:00 |
Free downloads
Plain files you can keep, print or open in a spreadsheet. They are the same figures used on this page.
Questions
Why is my timestamp read as milliseconds?
JavaScript, Java and many APIs use milliseconds, which are 13 digits for current dates. With Auto, a 13-digit number is read as milliseconds; choose Seconds if that is what you have.
Does a Unix timestamp depend on the time zone?
No. It counts time from one fixed instant in UTC. Only the displayed date and clock time change with the zone.