Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back, with automatic seconds/milliseconds detection.
Timestamp → Date
Accepts seconds or milliseconds — detected automatically.
Mon, 30 Nov 2026 20:08:16 GMT
ISO 8601: 2026-11-30T20:08:16.000Z
Local: 11/30/2026, 8:08:16 PM
Date → Timestamp
1796069280
Milliseconds: 1796069280000
A Unix timestamp counts seconds (or milliseconds) since January 1, 1970 UTC — the "epoch" — and it's how most APIs, databases, and log files actually store time internally, even though nobody reads it directly. This converter goes both directions: paste a timestamp to see the exact UTC and local date it represents, or enter a date and time to get the corresponding timestamp for use in code, API calls, or database queries. It automatically distinguishes seconds-based timestamps from millisecond-based ones, since both formats are common and mixing them up is one of the most frequent timestamp bugs.
How to Use This Calculator
1. Paste a timestamp to convert it to a date
Works with both second-based and millisecond-based timestamps — detected automatically.
2. Or enter a date and time to get its timestamp
Enter the date and time in UTC to get the exact Unix timestamp.
3. Copy whichever format you need
ISO 8601, UTC string, or the raw timestamp — all shown at once.
How It Works
seconds_since_epoch = (target_date − 1970-01-01T00:00:00Z) / 1000The timestamp 1700000000 represents November 14, 2023, 22:13:20 UTC — 1,700,000,000 seconds after midnight UTC on January 1, 1970.
Notable Unix Timestamps
Landmark timestamps and the UTC moments they represent, calculated directly from the epoch.
| Unix timestamp | What it is | UTC date and time |
|---|---|---|
| 0 | The Unix epoch | 1970-01-01T00:00:00Z |
| 1,000,000,000 | One billion seconds | 2001-09-09T01:46:40Z |
| 1,700,000,000 | A common sample value | 2023-11-14T22:13:20Z |
| 2,000,000,000 | Two billion seconds | 2033-05-18T03:33:20Z |
| 2,147,483,647 | The 32-bit limit (Year 2038 problem) | 2038-01-19T03:14:07Z |
Millisecond timestamps, as returned by JavaScript's Date.now(), are 1,000 times larger: 1700000000000 is the same moment as 1700000000.
Frequently Asked Questions
What is a Unix timestamp?
A Unix timestamp, or epoch time, is the number of seconds that have passed since midnight UTC on January 1, 1970, not counting leap seconds. It is one number that identifies a single instant in time unambiguously, which is why so much software, including databases, APIs, and log files, stores dates this way internally.
How do I know if a timestamp is in seconds or milliseconds?
Timestamps in seconds for current dates have 10 digits, while timestamps in milliseconds have 13 digits. This tool checks the magnitude automatically and converts accordingly. If a date comes out in January 1970, you probably fed a seconds value into something expecting milliseconds, or the reverse if it lands tens of thousands of years away.
How do I get the current Unix timestamp?
In JavaScript, Math.floor(Date.now() / 1000) gives seconds, and Date.now() gives milliseconds. In Python, use int(time.time()). On a Linux or macOS command line, run date +%s. Pasting any of those into this converter shows the matching date, and it works the other way around when you enter a date and time.
What is the Year 2038 problem?
Many older systems store Unix time as a signed 32-bit integer, whose largest value is 2,147,483,647. That second is January 19, 2038 at 03:14:07 UTC, and one second later the number overflows and wraps to a date in 1901. Systems using 64-bit timestamps are not affected, but embedded and legacy software may be.
Why do timestamps not include a time zone?
A Unix timestamp represents an absolute instant, equivalent to UTC, not a wall-clock time in any place. Displaying it in a particular time zone is a formatting choice made afterward, not something encoded in the number. Converting a timestamp to your local time changes how it is shown, never the underlying value.
How do I convert a Unix timestamp to a date in Excel or Google Sheets?
Divide the timestamp by 86,400, the seconds in a day, and add the date of the epoch: =A1/86400+DATE(1970,1,1), then format the cell as a date and time. For millisecond timestamps, divide by 86,400,000 instead. The result is in UTC, so add or subtract your time zone offset divided by 24 if you want local time.
What happens with dates before 1970?
They are represented as negative timestamps, counting backward from the epoch. Most modern systems handle negative timestamps correctly, but it is worth verifying if you work with older or embedded software, because some libraries reject them or treat them as invalid and return an error or an unexpected date.
Common Mistakes
❌ Mixing up seconds and milliseconds
JavaScript's Date.now() returns milliseconds, but many APIs and Unix tools expect seconds. Feeding a millisecond value into a seconds-expecting field produces a date far in the future (or vice versa, a date near 1970) — this is the single most common timestamp bug.
❌ Assuming a timestamp includes time zone information
A Unix timestamp is always a single point in absolute time (UTC) — it has no time zone attached. "Converting a timestamp to my time zone" means displaying that same instant using local formatting, not changing the underlying number.
❌ Using timestamps for dates before 1970 or far in the future without checking overflow
Negative timestamps represent dates before 1970 and are valid, but not every system handles them correctly. Very large timestamps can also overflow older 32-bit systems (the well-known "Year 2038 problem") — worth checking if you're integrating with legacy software.
Related Pay & Time Calculators
Paycheck Calculator
Free 2026 paycheck calculator. Enter your salary or hourly wage to see take-home pay after federal tax, FICA, and state tax, per paycheck and per year.
Overtime Calculator
Calculate overtime pay at a single hourly rate — regular pay, overtime pay, and total gross pay for the week. Adjustable overtime threshold and multiplier.
Time Zone Converter
Convert a date and time between time zones with correct daylight saving time handling for the exact date you enter, across 13 major world time zones.
Time Duration Calculator
Calculate the exact duration between two clock times, in hours, minutes, and decimal hours. Handles durations that cross midnight.
Countdown Calculator
Count down to any date and time in days, hours, minutes, and seconds — live-updating, with presets for popular dates like New Year's and Christmas.
Meeting Time Finder
Find overlapping working hours across up to 3 time zones to schedule a meeting everyone can actually attend, with correct daylight saving time handling.
Disclaimer: These results are estimates for informational purposes only and are not legal, tax, or payroll advice. Wage-and-hour rules vary by state, employer, and individual circumstances, so confirm important figures with your employer, your payroll provider, or a qualified professional.