How to Convert Epoch Seconds to Date Online
To convert epoch seconds to a date online, paste the 10-digit timestamp into a converter — it counts seconds since January 1, 1970 (UTC) and returns the readable date and time. For example, 1792108800 is October 16, 2026, 00:00:00 UTC. Try it with our free unix timestamp converter.
- The 10-Second Method
- Epoch Seconds to Date Converter: What You Are Looking At
- What Epoch Seconds Actually Are
- Epoch Seconds vs Milliseconds: The #1 Mistake
- Convert Unix Timestamp to Date in JavaScript
- The Python One-Liner
- Where Epoch Seconds Hide
- How to Get the Current Time as Epoch Seconds
- Epoch Seconds in SQL
- The 2038 Problem: When 32-bit Epoch Time Runs Out
The 10-Second Method
Step 1: Copy the timestamp — it is the 10-digit number, something like 1792108800. Step 2: Paste it into a converter such as our unix timestamp converter. Step 3: Read the result: 1792108800 becomes October 16, 2026, 00:00:00 UTC. That is genuinely the whole workflow — no software to install, no code to write. The converter also shows the time in your local timezone, which matters because the raw number is always anchored to UTC. If the result it shows is wildly wrong (the year 1970, or some date 50,000 years out), you almost certainly pasted milliseconds instead of seconds — see the trap section below before assuming the tool is broken.
Epoch Seconds to Date Converter: What You Are Looking At
A good converter shows you three things: the UTC date and time (the canonical answer), your local time equivalent, and sometimes the day of the week. UTC first, because epoch time is defined against UTC — 1792108800 means midnight UTC on October 16, 2026, which is still October 15 in the evening for US timezones. The local-time line handles that shift for you, including daylight-saving offsets. If you are correlating a timestamp with a log file or a database row, always compare in UTC; mixing a UTC timestamp against local-time logs is the classic off-by-several-hours confusion. New to the concept entirely? Start with what a Unix timestamp is before converting.
What Epoch Seconds Actually Are
Epoch time — Unix time — counts the seconds elapsed since January 1, 1970, 00:00:00 UTC, the “epoch.” That date was an arbitrary-but-convenient origin chosen in the early days of Unix, and the convention stuck so thoroughly that nearly every system on earth now speaks it: APIs, databases, JWT tokens, file systems, and log files. A 10-digit number covers every second from September 2001 through February 2286, so any timestamp you meet in the wild today has ten digits. (The famous Year 2038 problem: old 32-bit systems max out at 2,147,483,647 seconds — January 19, 2038. Modern 64-bit systems are fine.) The Excel crowd has its own path: our Unix timestamp to date in Excel guide covers the =(A1/86400)+DATE(1970,1,1) formula.
Epoch Seconds vs Milliseconds: The #1 Mistake
JavaScript's Date and many APIs work in milliseconds — 13 digits, not 10. Feeding 13-digit milliseconds into a seconds converter yields a date tens of thousands of years in the future; feeding 10-digit seconds into a milliseconds converter yields a date in January 1970. The fix: seconds × 1,000 = milliseconds; milliseconds ÷ 1,000 = seconds. So if your tool expects seconds and you have 1792108800000, drop the last three digits (or divide by 1,000) to get 1792108800. Quick digit-count rule: 10 digits = seconds, 13 digits = milliseconds. When a timestamp has some other length, it is probably microseconds (16 digits, common in databases) or a different epoch entirely — count the digits first, convert second.
Convert Unix Timestamp to Date in JavaScript
In JavaScript, Date wants milliseconds, so the conversion is one line: new Date(1792108800 * 1000). The × 1000 is the step everyone forgets — without it you get January 1970. Then format it: .toISOString() gives “2026-10-16T00:00:00.000Z” (UTC, unambiguous, sortable — the right choice for logs and APIs), while .toLocaleString() gives the reader's local rendering like “10/16/2026, 12:00:00 AM”. For date-only output, .toISOString().slice(0,10) yields “2026-10-16”. Going the other direction — date to epoch seconds — use Math.floor(Date.now() / 1000): Date.now() returns milliseconds, and the division brings it back to seconds. Bookmark the unix timestamp converter for the cases where opening a console is overkill.
The Python One-Liner
Python's datetime handles it cleanly: datetime.fromtimestamp(1792108800, tz=timezone.utc) returns datetime(2026, 10, 16, 0, 0, tzinfo=utc). The tz argument matters — without it you get naive local time, which is a different moment on the clock for most readers. For epoch-seconds from a datetime, int(dt.timestamp()) does the reverse. Pandas users: pd.to_datetime(1792108800, unit=“s”, utc=True). One gotcha across languages: fromtimestamp with a 13-digit millisecond value silently produces a far-future date instead of erroring, so the digit-count check from the previous section belongs in every script that ingests timestamps from outside your system.
Where Epoch Seconds Hide
You meet raw epoch seconds in more places than you expect. APIs return them for created_at, published, and expires fields — weather APIs pair them with Celsius temperatures (our celsius to fahrenheit converter handles that half of the payload). JWT tokens carry exp and iat claims as epoch seconds; an expired-token bug is often just a seconds-vs-milliseconds comparison. Databases store Unix timestamps in integer columns for sortable, timezone-free ordering. Logs and file metadata stamp events in epoch time for the same reason. In every case the debugging move is identical: paste the number into the converter, read the UTC date, and check whether it matches the moment you expected — mismatches almost always trace back to the milliseconds trap or a timezone assumption.
How to Get the Current Time as Epoch Seconds
Sometimes you need the reverse: right now, as a number. In a browser console or Node.js, Math.floor(Date.now() / 1000) returns the current epoch seconds (Date.now() gives milliseconds; the division and floor bring it to whole seconds). In Python, int(time.time()) does the same. On the command line, date +%s prints it on Linux and macOS. These are handy for cache-busting URLs (?v=1792108800), generating sortable unique IDs, and stamping log lines. One caution: never use the current timestamp as a security token or password — it is predictable to the second, and attackers know exactly what “now” is. For expiry math, compute expires = now + seconds (e.g. now + 3600 for one hour) and store that; comparing stored expiry against the current epoch seconds is how session timeouts and trial periods work under the hood.
Epoch Seconds in SQL
Databases speak epoch fluently. In PostgreSQL, SELECT to_timestamp(1792108800) returns 2026-10-16 00:00:00+00, and SELECT extract(epoch FROM now()) goes the other way. In MySQL, SELECT FROM_UNIXTIME(1792108800) gives ‘2026-10-16 00:00:00’, while SELECT UNIX_TIMESTAMP() returns now as epoch seconds. In SQLite, SELECT datetime(1792108800, ‘unixepoch’) does the conversion. Storing timestamps as integers has real advantages: they sort correctly, occupy 4–8 bytes, and carry no timezone ambiguity — the application converts to local time only at display. The tradeoff is readability: SELECT * shows 1792108800 instead of a date, which is why DBAs keep a converter tab open. Our unix timestamp converter is that tab — paste any integer column value and read the date instantly.
The 2038 Problem: When 32-bit Epoch Time Runs Out
Old systems store epoch seconds in a signed 32-bit integer, which maxes out at 2,147,483,647 — January 19, 2038, at 03:14:07 UTC. One second later the counter overflows to a negative number and the clock jumps back to December 1901. Sound familiar? It is the same class of bug as Y2K, and embedded systems, old databases, and legacy file formats are still exposed. The fix is 64-bit time, which pushes the limit billions of years out — every modern OS, language runtime, and database already uses it. For your own work the practical rule is simple: store timestamps as 64-bit integers (or database-native timestamp types), and when you inherit a system, check whether any layer still assumes 32-bit time before 2038 turns a trivia question into an outage.
Do it in one click
Convert any Unix timestamp to a readable date — free, instant, no signup.
Open the Free Tool →