Epoch Converter
Convert between Unix/epoch timestamps and human-readable dates. Supports any timezone, batch conversion, and code snippets.
Seconds or milliseconds
UTC
new Date(1774875205000) // 2026-03-30T12:53:25.000Z
How it works
Unix time (also called epoch time or POSIX time) counts the number of seconds since the Unix epoch — January 1, 1970 at 00:00:00 UTC. This system is used by virtually every programming language, operating system, and database to store and transmit timestamps.
A 10-digit number represents seconds (e.g., 1709913600 = March 8, 2024). A 13-digit number represents milliseconds, commonly used in JavaScript and Java. This converter auto-detects which format you're using.
To convert from a date to epoch: the tool calculates the number of seconds between your input date/time and January 1, 1970 00:00:00 UTC. To convert from epoch to a date: it adds that many seconds to the epoch and displays the result in both UTC and your local timezone.
FAQ
What is a Unix/epoch timestamp?
A Unix timestamp is the number of seconds since January 1, 1970 00:00:00 UTC. It's used in programming, databases, and APIs to represent dates as a single number. For example, 1700000000 represents November 14, 2023.
How do I convert a Unix timestamp to a date?
Paste your Unix timestamp into the converter and it will instantly show the corresponding date and time in your local timezone and UTC. It handles both seconds (10 digits) and milliseconds (13 digits).
What's the difference between seconds and milliseconds?
Unix timestamps in seconds are 10 digits (e.g., 1709913600). Millisecond timestamps are 13 digits (e.g., 1709913600000) and are commonly used in JavaScript's Date.now() and Java's System.currentTimeMillis(). This tool auto-detects the format.
Is this epoch converter free?
Yes, completely free with no account required. It runs entirely in your browser — no data is sent to any server.
What is the Year 2038 problem?
Many older systems store Unix time as a signed 32-bit integer, which overflows on January 19, 2038. After that date, the timestamp wraps to a negative number. Modern systems use 64-bit integers, which extend well beyond the lifetime of the universe.
Do negative Unix timestamps work?
Yes. Negative timestamps represent dates before January 1, 1970. For example, -86400 is December 31, 1969. This converter handles negative timestamps correctly.
What programming languages use epoch time?
Nearly all: Python (time.time()), JavaScript (Date.now() in ms), Java (System.currentTimeMillis() in ms), C/C++ (time()), Ruby (Time.now.to_i), Go (time.Now().Unix()), and PHP (time()). Database systems like PostgreSQL and MySQL also use epoch internally.
Related tools
- Timezone Comparator — Compare times across multiple time zones side by side
- JSON Formatter — Format, validate, and minify JSON with syntax highlighting
- Paycheck Estimator — Calculate take-home pay after federal and state taxes
- Salary to Hourly — Convert annual salary to hourly rate and vice versa
