Unix Timestamp Converter — Epoch ↔ Human Date
Current Unix time: — (seconds, ticking live)
One number, every timezone — how epoch time works
Computers hate dates. Months have variable lengths, timezones shift twice a year, and "14 November" means nothing without a year and a place. Unix time sidesteps all of it by storing a single integer: the seconds elapsed since the epoch, 1 January 1970 at midnight UTC. Comparing two moments is one subtraction; sorting is trivial; adding a day is adding 86,400. The cost is readability — 1795392000 means nothing to a human until it is converted, which is the entire job of this page. That number, for the record, is 23 November 2026, 00:00:00 UTC: 05:00 the same morning in Pakistan, midnight in London, and 19:00 the previous evening in New York. The instant is one; the wall-clock reading depends on where you stand, and the converter shows both UTC and your browser's local time so the two never get confused.
Seconds versus milliseconds causes more production bugs than every other timestamp issue combined. Unix tradition counts seconds (10 digits today); JavaScript's Date.now() counts milliseconds (13 digits). Feed milliseconds into a seconds-expecting field and your date lands in the year 55,000-something or crashes the parser; feed seconds into a milliseconds field and everything happened in January 1970. APIs disagree with each other, which is why this converter accepts either, detects the unit from the digit count, and states its assumption in the result rather than silently guessing.
The other famous boundary is the year 2038 problem: a signed 32-bit integer tops out at 2,147,483,647 — 19 January 2038 at 03:14:07 UTC. Legacy systems still storing time that way will wrap to 1901. 64-bit timestamps, used everywhere modern, postpone the problem beyond any planning horizon. If you are converting timestamps from old devices, file formats or embedded logs, a result in December 1901 is the fingerprint of exactly this overflow.
Negative timestamps are legal and simply mean "before the epoch": −86400 is 31 December 1969, and birth dates of anyone born before 1970 are negative numbers in systems that store them as epoch values — one reason older records sometimes appear as 1970 when a system quietly refuses negatives. This converter accepts them; if your database does not, that mismatch, not the date itself, is the bug.
Worked examples
A round number. 1700000000 = Tuesday 14 November 2023, 22:13:20 UTC — a favourite test value in documentation.
New Year 2026. 1767225600 = 1 January 2026, 00:00:00 UTC. In milliseconds the same instant is 1767225600000.
The two-billion milestone. 2000000000 = 18 May 2033, 03:33:20 UTC — the next round-number party after 1234567890 (13 February 2009) and 1700000000.
Zero. Timestamp 0 is the epoch itself: 1 January 1970, 00:00:00 UTC. A 0 in a database almost always means "never set", not a real moment in 1970.
Reference — timestamps for common boundaries
| Instant (UTC) | Seconds | Milliseconds |
|---|---|---|
| 1 Jan 2026, 00:00 | 1767225600 | 1767225600000 |
| 23 Nov 2026, 00:00 | 1795392000 | 1795392000000 |
| 1 Jan 2027, 00:00 | 1798761600 | 1798761600000 |
| 19 Jan 2038, 03:14:07 (32-bit limit) | 2147483647 | 2147483647000 |
Where you will meet timestamps in the wild
Login tokens. A JWT carries its expiry as an exp claim in seconds — decode one and this converter tells you the exact minute a session dies, which settles most "why did I get logged out" mysteries. Databases. Columns named created_at or ts holding ten-digit integers are epoch seconds; thirteen digits means the application stored JavaScript milliseconds, and queries that mix the two return rows in a nonsense order. Log files and APIs. Server logs, analytics events and rate-limit headers (X-RateLimit-Reset) speak epoch seconds almost universally. Files. Your filesystem stores modification times as epoch values under the hood — the human date in a file listing is a conversion exactly like this one. In every case the debugging move is the same: convert before you conclude, and check the digit count before you convert, because a three-order-of-magnitude error looks exactly like a timezone error until you count the digits.
Frequently asked questions
Is my timestamp in seconds or milliseconds?
Count the digits. Current timestamps in seconds have 10 digits (for example 1795392000); in milliseconds they have 13 (1795392000000). JavaScript's Date.now() returns milliseconds, while most Unix systems, databases and APIs count seconds. This converter detects the difference automatically by length and tells you which it assumed.
What is the Unix epoch?
The epoch is the zero point of Unix time: 1 January 1970, 00:00:00 UTC. A Unix timestamp is simply the number of seconds (or milliseconds) elapsed since that moment. It was chosen by the early Unix engineers as a round, recent date — and has since become the most common way computers store time, because a single number is easy to compare, sort and subtract.
What is the year 2038 problem?
Systems that store timestamps in a signed 32-bit integer run out of room at 2,147,483,647 seconds — 19 January 2038, 03:14:07 UTC — after which the count wraps negative and dates jump back to 1901. Modern systems use 64-bit integers, which will not overflow for hundreds of billions of years, but old embedded systems, file formats and protocols still carry the 2038 limit.
Why does my timestamp show the wrong hour?
Because a timestamp itself has no timezone — the difference is in how it is displayed. The same instant, 1795392000, is 23 November 2026 00:00 in UTC but 05:00 the same day in Pakistan (UTC+5) and 19:00 on 22 November in New York (UTC-5). If a converted date is off by a few hours rather than days, you are looking at a UTC value displayed as local time, or the reverse.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now()/1000) for seconds (Date.now() itself is milliseconds). Python: int(time.time()). PHP: time(). SQL: UNIX_TIMESTAMP() in MySQL, EXTRACT(EPOCH FROM NOW()) in PostgreSQL. Shell: date +%s. The live counter at the top of this page shows the same value your code would produce.
Related tools
Conversion method last verified: 23 November 2026. Your timestamps never leave your browser — everything is calculated on this page.