Epoch Converter
Convert Unix timestamps to human-readable dates, and dates back to epoch seconds or milliseconds.
1795164675November 20, 2026 at 08:51:15 AM UTC
Supports seconds (10 digits) or milliseconds (13 digits)
09466848002147483647179513280017950782751794559875What an epoch timestamp is
A Unix timestamp, also called epoch time or POSIX time, counts the seconds since 1 January 1970 at 00:00:00 UTC, a moment known as the Unix epoch. Linux, macOS, many databases and many web APIs store time this way. One number is easy to sort and subtract, and it means the same instant in every time zone.
A value like 1700000000 tells a person reading a log nothing about the date. This epoch converter turns the number into a human-readable date and back again, and it shows the current epoch time at the top of the page.
Features
- Live current Unix timestamp, updated every second
- Timestamp to date as you type, no Convert button
- Reads seconds or milliseconds by digit count
- Date to epoch seconds and milliseconds
- Results in UTC, your local time zone and ISO 8601
- One-click copy of the epoch and ISO values
- Runs in your browser
How to convert epoch time to a human date
- 1
Check the current epoch
Read the live value in Current Unix Timestamp, which updates every second, and use the copy button next to it to copy it.
- 2
Convert a timestamp to a date
Paste seconds or milliseconds into the Unix Timestamp box. The ISO 8601, Local, UTC and Relative results appear straight away.
- 3
Convert a date to a timestamp
Choose a date and time in the Date/Time field. Unix (seconds), Unix (milliseconds) and ISO 8601 appear below it.
- 4
Copy the result
Use the copy buttons next to ISO 8601 or the Unix seconds and milliseconds values to copy them to your clipboard.
The Local / UTC toggle switches how the current time under the live timestamp is written. Converted timestamps always show both Local and UTC lines, so you can compare them side by side. Use Current Time fills the Unix Timestamp box with the current epoch seconds.
Worked examples
Paste any of these into the Unix Timestamp box. The UTC column is what the ISO 8601 line shows; the Local line will differ by your time zone offset.
| Input | Read as | ISO 8601 (UTC) | Note |
|---|---|---|---|
0 | seconds | 1970-01-01T00:00:00.000Z | The Unix epoch itself |
946684800 | seconds | 2000-01-01T00:00:00.000Z | Start of the year 2000 |
1000000000 | seconds | 2001-09-09T01:46:40.000Z | The first 10-digit timestamp |
1700000000 | seconds | 2023-11-14T22:13:20.000Z | A typical 10-digit value |
1700000000000 | milliseconds | 2023-11-14T22:13:20.000Z | Same moment, 13 digits |
2147483647 | seconds | 2038-01-19T03:14:07.000Z | Largest signed 32-bit value |
-86400 | seconds | 1969-12-31T00:00:00.000Z | Negative values are before 1970 |
Timestamps are often compared by adding or subtracting fixed durations. In seconds: 60 = 1 minute, 3600 = 1 hour, 86400 = 1 day, 604800 = 1 week, 31536000 = 365 days. So 1700000000 + 86400 = 1700086400, exactly one day later.
Seconds or milliseconds?
Unix and Linux tools, PHP and most databases count in seconds, which gives a 10-digit number for dates between September 2001 and November 2286. JavaScript's Date.now() and Java's System.currentTimeMillis() count in milliseconds, which gives 13 digits for current dates.
The converter decides by size. It treats anything up to 9999999999 as seconds and anything larger as milliseconds. To switch by hand, multiply seconds by 1000 to get milliseconds, or divide milliseconds by 1000 and drop the remainder to get seconds.
If a converted date lands in January 1970, something upstream probably divided or truncated the value before you pasted it. If the date is tens of thousands of years away, or no result appears, you probably pasted microseconds or nanoseconds.
Linux epoch conversion on the command line
On Linux, date +%s prints the current epoch time in seconds. To turn an epoch value into a readable UTC date with GNU date, run:
date -u -d @1700000000
On macOS and other BSD systems the flag is different:
date -u -r 1700000000
Both print the date for 14 November 2023, 22:13:20 UTC. Drop -u to see the date in the machine's local time zone. Both commands expect seconds, so divide millisecond values by 1000 first.
Get the current epoch time in code
Each of these returns the current Unix timestamp in whole seconds. The Java line needs java.time.Instant, and the Go line needs the time package.
- JavaScript
Math.floor(Date.now() / 1000)- Python
import time; int(time.time())- Linux / macOS shell
date +%s- PHP
time()- Java
Instant.now().getEpochSecond()- Go
time.Now().Unix()- C#
DateTimeOffset.UtcNow.ToUnixTimeSeconds()- Ruby
Time.now.to_i- MySQL
SELECT UNIX_TIMESTAMP();- PostgreSQL
SELECT floor(extract(epoch FROM now()));
To go the other way in JavaScript, multiply by 1000 first: new Date(1700000000 * 1000).toISOString() returns 2023-11-14T22:13:20.000Z. In Python, after from datetime import datetime, timezone, datetime.fromtimestamp(1700000000, tz=timezone.utc) gives the same moment.
Limitations to know about
- The converter reads whole numbers only. It ignores digits after a decimal point, so 1700000000.75 converts as 1700000000.
- Remove thousands separators before pasting. The converter stops reading at the first comma or space inside the number, so 1,700,000,000 is read as 1.
- The converter does not recognise microsecond (16-digit) or nanosecond (19-digit) timestamps. Divide them down to milliseconds or seconds first.
- Negative timestamps for dates before 1970 work as seconds. The converter reads millisecond values from the first few months of 1970 as seconds, because they have 10 digits or fewer.
- The Date/Time picker uses your device's time zone. There is no option to enter a date in UTC or in another named time zone.
- The Relative line is approximate: it counts a month as 30 days and a year as 365 days.
- Unix time does not count leap seconds, so every day is exactly 86400 seconds long.
The year 2038 problem
Systems that store Unix time in a signed 32-bit integer can count up to 2147483647, which is 19 January 2038 at 03:14:07 UTC. One second later the value overflows and wraps to a negative number, which reads as a date in December 1901.
Systems that store the timestamp in a 64-bit integer do not have this limit. The Common Reference Timestamps panel in the tool lists the 2038 value alongside the epoch, Y2K, the start of today in UTC, 24 hours ago and one week ago.
Runs in your browser
JavaScript in your browser tab does every conversion, so the page does not send the timestamps and dates you enter to a server. The Local line uses your device's own time zone setting.
The page records a usage event when you press a copy button. The event names the field you copied, not its value.
Frequently asked questions
How do I convert epoch time to a human-readable date?
Paste the epoch value into the Unix Timestamp box under Unix Timestamp → Human Date. The date appears as you type, as an ISO 8601 string, in your local time zone, in UTC, and as a relative time such as "3 days ago". There is no Convert button to press.
Does the converter handle milliseconds?
Yes. A value with up to 10 digits is read as seconds and a value with 11 or more digits is read as milliseconds, so 1700000000 and 1700000000000 both give 14 November 2023, 22:13:20 UTC. Going the other way, a date is converted to both epoch seconds and epoch milliseconds.
How do I convert a date to a Unix timestamp?
Pick a date and time in the Date/Time field under Human Date → Unix Timestamp. The tool shows Unix (seconds), Unix (milliseconds) and the ISO 8601 form. The date you pick is read in your device's local time zone.
Is a Linux timestamp the same as a Unix epoch timestamp?
Yes. Linux uses standard Unix time: the number of seconds since 1 January 1970, 00:00:00 UTC. A value printed by date +%s on Linux can be pasted straight into this converter.
Can I convert a date entered in UTC instead of local time?
Not directly. The Date/Time field always uses your device's time zone, and the Local / UTC toggle only changes how the current time under the live timestamp is shown. Check the ISO 8601 line in the result, which is always in UTC, or adjust the time you enter by your UTC offset.
Is this epoch converter free?
Yes. It is free, needs no sign-up, and the conversions run in your browser.
Why does my timestamp show a date in 1970?
Usually because a millisecond value was cut down or a seconds value was divided by 1000 somewhere. For example, 1700000 read as seconds is 20 January 1970. Check how many digits the original value has: about 10 for seconds and 13 for milliseconds for current dates.
Related tools
JSON Formatter
Format JSON online in your browser. Paste or upload JSON to tidy it with 2 or 4 space indents, find syntax errors, minify it or browse it as a collapsible tree.
JavaScript to JSON
Convert JavaScript object literals to valid JSON
JSON Merge
Merge two JSON objects online with a deep or shallow strategy and choose how arrays combine. Useful for config files and API responses. Free, no signup.