Introduction
Computers do not store dates the way people write them. Instead, they count the number of seconds that have passed since January 1, 1970 at 00:00:00 UTC. That count is called the Unix epoch timestamp. A number like 1788480000 looks like nonsense to us, but to a computer it is an exact moment in time.
This Epoch Converter turns those numbers into normal dates, and normal dates back into numbers. It works with seconds, milliseconds, microseconds, and nanoseconds, and it figures out the unit for you by counting the digits.
Here is what you can do with it:
- See the live clock. Watch the current epoch time tick in four units, and copy any of them with one click.
- Convert a timestamp to a date. Paste any epoch number and get the full date and time in UTC and in your chosen timezone.
- Convert a date to a timestamp. Type the month, day, year, and time, or use the date picker.
- Type plain text. Enter things like "September 4, 2026", "tomorrow", "3 days ago", or "in 6 hours".
- Find start and end times. Get the first and last second of any year, month, day, or hour.
- Compare two times. See the gap in days, hours, minutes, and seconds, with the math shown step by step.
- Convert a whole list. Paste up to 500 timestamps at once and copy all the results.
Pick your timezone, date format, and 12- or 24-hour clock in the settings at the top. Everything runs right in your browser, so your data never leaves your device. Developers use a converter like this when reading log files, checking API responses, debugging databases, or setting expiry times.
How to use our Epoch Calculator
Type a Unix timestamp or a date, and this tool shows you the matching date, time, epoch number, time range, or time gap in seconds, minutes, hours, and days.
Regional locale: Pick your region, or leave it on Auto-detect, and the date and clock style are set for you.
Clock display format: Choose 12-hour (AM/PM) or 24-hour time for every result on the page.
Date input / display format: Choose Y-M-D, M/D/Y, or D-M-Y so dates read the way you expect.
Default timestamp unit: Pick seconds or milliseconds. This is the unit used when you click any "use now" button.
Default timezone: Choose UTC, your local time, or any city zone. All date results use this zone.
Show UTC + selected timezone: Turn this on to see both UTC and your chosen zone side by side.
Pause live clock: Click it to freeze the live epoch clock so you can read or copy a value. Click again to resume.
Unix timestamp (Epoch → Date): Enter your number. The tool counts the digits and guesses seconds, milliseconds, microseconds, or nanoseconds, then shows the date for each one.
Month, Day, and Year: Type each part of the date, or click "Pick date" to choose a day on the calendar.
Hours, Minutes, and Seconds: Type the time of day. In 12-hour mode, also pick AM or PM.
Timezone (Date → Epoch): Pick the zone your date and time belong to, then click Convert to get the epoch number.
Date string: Type any date text like 2026-09-04T14:30:00Z, September 4, 2026, tomorrow, or 3 days ago to get its epoch value.
Granularity: Choose Year, Month, Day, or Hour to set how wide the time period is.
Year, Month, Day, and Hour (range): Fill the boxes that show up. The tool gives the first and last epoch second of that period.
Timestamp A and Timestamp B: Enter two epoch numbers or two dates to find the gap between them.
Unit for A and Unit for B: Leave on Auto-detect, or pick seconds, milliseconds, microseconds, or nanoseconds yourself.
Batch list: Paste up to 500 timestamps, one per line, then click "Convert list" to see all dates in a table and copy them at once.
What Is Epoch Time?
Epoch time, also called Unix time or a Unix timestamp, is a way computers keep track of time. It counts the number of seconds that have passed since January 1, 1970 at 00:00:00 UTC. That moment is called the Unix epoch. So a timestamp like 1788480000 just means "1,788,480,000 seconds after the start of 1970."
Why Computers Use It
A date like "September 4, 2026, 2:30 PM" is easy for people to read, but hard for computers to sort and compare. Months have different lengths, years can be leap years, and every country writes dates in its own order. Epoch time fixes all of that. It is one plain number, always counting up, always based on UTC. That makes it simple to store in databases, send between servers, and use to find the gap between two events.
Seconds, Milliseconds, and Smaller Units
Different systems store epoch time with different accuracy. You can usually tell which unit you have by counting the digits:
- 10 digits. Seconds (used by Unix, Linux, PHP, and most APIs)
- 13 digits. Milliseconds (used by JavaScript and Java)
- 16 digits. Microseconds (used by Python and some log files)
- 19 digits. Nanoseconds (used by Go and high-speed systems)
Each step up is 1,000 times smaller. So 1 second = 1,000 milliseconds = 1,000,000 microseconds = 1,000,000,000 nanoseconds. If you read a timestamp with the wrong unit, your date can be off by decades, so the digit count matters.
Epoch Time and Time Zones
A Unix timestamp has no time zone built in. It always points to the same exact moment everywhere on Earth. The time zone only matters when you turn that number into a readable date. The timestamp 1788480000 is noon in London and 7:00 AM in New York. Same instant, different clock reading. This is why servers store timestamps in UTC and only convert to local time when showing them to a person.
Handy Numbers to Know
- 1 minute = 60 seconds
- 1 hour = 3,600 seconds
- 1 day = 86,400 seconds
- 1 week = 604,800 seconds
- 1 average year = about 31,557,600 seconds
To find the time between two events, just subtract the smaller timestamp from the bigger one. Divide the answer by 86,400 to get days, or by 3,600 to get hours.
The Year 2038 Problem
Older systems store epoch time in a signed 32-bit number. That number runs out on January 19, 2038, and would flip to a negative value, sending the date back to 1901. Most modern software now uses 64-bit numbers, which will not run out for billions of years. Older hardware and legacy code still need updating.
Where You Will See Epoch Timestamps
Epoch time shows up in server logs, API responses, JSON data, JWT tokens (the iat and exp fields), cookie expiry dates, database records, file timestamps, and cache headers. Developers, sysadmins, and data analysts convert these numbers to readable dates every day when debugging errors or lining up events from different systems.