Free Online Unix Timestamp Converter
Unix timestamps are everywhere — API responses, database rows, log files, JWT claims, cookie expirations — yet they read like noise to humans. A value such as 1779000000 tells you nothing until it is translated. This timestamp converter bridges that gap instantly and in both directions: paste a timestamp to see the exact date and time, or pick a date to get its epoch representation, all without leaving your browser.
The tool handles both common resolutions automatically. Values with up to eleven digits are treated as seconds, longer values as milliseconds, matching how APIs typically emit them, so there is no unit dropdown to worry about. Results include the unambiguous ISO 8601 UTC form, your device's local time, and a friendly relative phrase like "in 3 days" or "5 hours ago" that puts the moment in immediate context. Going the other way, the date picker converts any calendar date into Unix seconds and milliseconds, ready to paste into code, cron expressions or database queries.
A live clock showing the current Unix time rounds out the workflow — invaluable when debugging expiry logic or generating test data. Everything runs locally with plain JavaScript math: nothing you type is ever transmitted, logged or stored. Log lines usually pair a timestamp with a request ID, so if you are building fixtures around them, the UUID Generator produces collision-free identifiers the same way.
How to Use This Tool
- Convert a timestamp — type or paste digits like
1779000000into the timestamp field; seconds and milliseconds are detected automatically. - Read the results — ISO 8601 UTC, local time and relative time appear instantly, each one click from the clipboard.
- Convert a date — use the date picker to choose a moment and copy its Unix seconds or milliseconds.
- Grab the current time — the live epoch clock at the top updates every second and can be copied with a single click.
What a Timestamp Actually Counts
Unix time is the number of seconds elapsed since 1970-01-01 00:00:00 UTC, the "epoch". It deliberately ignores timezones and leap seconds: every machine on earth agrees on the same integer for the same instant, and the translation into a calendar date happens afterwards, on display. That is why a timestamp never needs a timezone attached to be unambiguous, and why the same timestamp can legitimately show two different clock times in two places.
The unit is not part of the number, which is where most confusion starts. The same instant can be written four ways:
| Digits | Unit | Same instant, written out | Where you meet it |
|---|---|---|---|
| 10 | seconds | 1779000000 | POSIX APIs, exp and iat in JWTs, UNIX_TIMESTAMP() in MySQL, most webhook payloads |
| 13 | milliseconds | 1779000000123 | JavaScript Date.now(), Java System.currentTimeMillis(), browser devtools |
| 16 | microseconds | 1779000000123456 | Data warehouse and ETL schemas that need sub-millisecond ordering |
| 19 | nanoseconds | 1779000000123456789 | Go's time.Now().UnixNano(), high-resolution profiling data |
This converter works with the first two, which cover essentially every timestamp you will paste out of an API response or a log line.
Seconds or Milliseconds? The 11-Digit Rule
Counting digits is enough, because the two ranges cannot overlap for any realistic date. Ten digits as seconds run from 1970 to 2286; the same ten digits read as milliseconds would land in January 1970. Thirteen digits as milliseconds cover 2001 to 2286; read as seconds they would point at the year 33658, well outside anything a database will ever hold.
So the rule this tool applies is: up to eleven digits means seconds, twelve or more means milliseconds. Eleven digits is included with seconds because that is how the value grows — 1779000000 today, 10000000000 in 2286 — and no millisecond timestamp will ever be that short.
The only place the heuristic can surprise you is a counter that is not a timestamp at all, such as a long ID or a file size. If the converted date is absurd (1970, or a year past 9999), check that you pasted a time value rather than an identifier.
Timezones: Why the Date Can Look Hours Off
Every timestamp result is shown three ways on purpose:
- ISO 8601 UTC —
2026-05-17T06:40:00.000Z. TheZmeans UTC. This is the form to copy into bug reports, database comparisons and anything that crosses machines, because it never depends on where you are sitting. - Local time — the same instant rendered in the timezone configured on your device. If you are in UTC+8, it will read
14:40while the UTC row says06:40for the identical moment — eight hours later, not eight hours wrong. - Relative time — "in 3 days" or "5 hours ago", measured against your clock right now.
A timestamp that "looks eight hours off" is almost never a conversion error. It is the difference between storing UTC and displaying local, which is exactly the behaviour you want: store UTC, render local, and daylight-saving shifts take care of themselves. Conversely, when you convert a picked date back into a timestamp, the date and time you select are interpreted in your local timezone — so 14:40 typed on a machine set to UTC+8 and 06:40 typed on one set to UTC land on the same instant, while the same digits entered in both places would not.
Converting Timestamps in Code
The browser is convenient for one-off lookups; the same conversions in your own environment look like this.
| Language | Seconds to date | Now as a timestamp |
|---|---|---|
| JavaScript | new Date(1779000000 * 1000) | Math.floor(Date.now() / 1000) |
| Python | datetime.datetime.fromtimestamp(1779000000, datetime.timezone.utc) | int(datetime.datetime.now(datetime.timezone.utc).timestamp()) |
| PostgreSQL | SELECT to_timestamp(1779000000); | EXTRACT(EPOCH FROM now()) |
| MySQL | SELECT FROM_UNIXTIME(1779000000); | UNIX_TIMESTAMP() |
| Excel | =(A1/86400)+DATE(1970,1,1) | =(NOW()-DATE(1970,1,1))*86400 |
| Shell (macOS) | date -u -r 1779000000 | date +%s |
| Shell (Linux) | date -u -d @1779000000 | date +%s |
Two details trip people up in code rather than in this tool. JavaScript works in milliseconds throughout, so a ten-digit value has to be multiplied by 1000 before it reaches new Date(). Excel stores dates as day counts, which is why the formula divides by 86,400 — and for millisecond input it is 86,400,000.
What This Converter Does Not Accept
Being explicit about the boundaries saves a wrong answer:
- Digits only. A minus sign, a decimal point, a trailing
Zor an ISO string such as2026-05-17T06:40:00Zare all rejected — the tool converts numbers, not formatted dates. Use the date picker for the other direction. - No dates before 1970. Negative offsets are refused rather than quietly converted, because a negative value is ambiguous between "before the epoch" and "a malformed input".
- Nothing past 9999-12-31. That is the last moment JavaScript's
Daterenders reliably, so milliseconds above 253,402,300,799,999 are rejected. - Maximum 20 characters. Longer input is rejected before parsing; a real timestamp never needs more than 16 digits.
Common Mistakes Worth Knowing
- The 2038 problem. Systems that store Unix time in a signed 32-bit integer overflow on 2038-01-19 at 03:14:07 UTC. This converter is unaffected, but an old embedded device that suddenly reports 1901 is showing you exactly that.
- Truncating milliseconds. Converting a 13-digit value to seconds and back loses the sub-second part permanently —
1779000000123becomes1779000000000. Keep the millisecond value in storage and only trim it at display time. - Excel serial numbers. A spreadsheet cell holding
46160is a day count, not a timestamp. Six digits or fewer in a date column is a strong hint you are looking at one. - Milliseconds rounded to seconds in logs. Two events one second apart can appear simultaneous when a logger writes seconds only. If ordering matters, check which unit the logger emits before drawing conclusions.