Unix Timestamp Converter
Time & SpeedConvert Unix timestamps to readable dates, ISO 8601, UTC, and local time. Supports seconds and milliseconds. Built for developers and engineers.
Enter a Unix timestamp above.
What is a Timestamp?
A Unix Timestamp Converter translates between Unix epoch time — a large integer counting seconds (or milliseconds) since 1 January 1970 00:00:00 UTC — and human-readable date and time formats. Every major operating system, database, and programming language uses Unix timestamps internally because they are timezone-agnostic, arithmetically simple, and compact to store.
The Unix Epoch itself is a specific moment: midnight at the start of 1 January 1970 in Coordinated Universal Time (UTC). Every second that passes increments the timestamp by one. As of mid-2026, the Unix timestamp is approximately 1,750,000,000 seconds. Millisecond-precision timestamps (multiplied by 1000) are the default in JavaScript's Date.now(), Java's System.currentTimeMillis(), and most modern REST APIs.
Understanding epoch time is essential for debugging API responses, inspecting database records, reading server logs, and working with scheduled tasks or cron jobs. A raw timestamp like 1700000000 is opaque; once converted, it resolves to Fri, 14 Nov 2023 22:13:20 UTC — instantly actionable information.
This converter handles both directions: paste a Unix timestamp to see it as ISO 8601, RFC 2822 (HTTP Date header format), local browser time, and a relative description such as "8 months ago". Or select a date and time to get the corresponding epoch value in both seconds and milliseconds. The URL updates on every change, so any converted timestamp is shareable with a direct link.
For time zone work alongside this tool, the Time Converter covers duration conversions between seconds, minutes, hours, and days. For developers who also need to inspect numeric representations of timestamps, the Number Base Converter converts between decimal, hexadecimal, binary, and octal — useful when reading raw protocol data or memory dumps.
How to use this Timestamp calculator
Enter a Unix timestamp in the top input field. Paste an integer from an API response, database query, or log file. If you want to start from the current moment, click Now ↺ to populate the field automatically.
Toggle seconds or milliseconds using the Seconds / Milliseconds switch on the top right. JavaScript's
Date.now()returns milliseconds; most other languages and Unix commands return seconds. The converter converts the displayed value automatically when you switch units.Read the date and time in the output panel below — ISO 8601, RFC 2822, local browser time, and relative time appear simultaneously. Click Copy next to any row to copy it to the clipboard.
Convert a date to epoch using the Date / Time → Epoch section. Click the date picker, select a date and time in your local time zone, and the corresponding Unix timestamps in both seconds and milliseconds appear immediately. Copy either value.
Use "Use current epoch value ↑" to pre-fill the date picker with the date equivalent of whatever timestamp is currently in the top input — useful for making small edits to a known timestamp without retyping it.
Load a quick reference value by clicking any timestamp in the Quick Reference section. This sets the top input to that epoch value so you can inspect notable boundary dates, verify your system handles the Unix Epoch correctly, or check how your code behaves near the Y2K38 overflow.
Formula & Methodology
### Epoch → Date The converter passes the raw integer to JavaScript'sDateconstructor after normalising to milliseconds:Date object = new Date(unix_seconds × 1000) Date object = new Date(unix_milliseconds) // already msFrom the Date object, the output formats are derived: - ISO 8601:date.toISOString()→YYYY-MM-DDTHH:mm:ss.sssZ- RFC 2822:date.toUTCString()→Www, DD Mmm YYYY HH:mm:ss GMT- Local:date.toLocaleString('en-IN', { timeZone: browserTZ })→ locale-formatted string with IANA zone appended - Relative: difference fromDate.now()divided by progressively larger units (seconds → minutes → hours → days → months → years) ### Date → Epoch The HTMLdatetime-localinput returns a local time string (YYYY-MM-DDTHH:mm). JavaScript'snew Date(string)parses this as local time:epoch_ms = new Date(datetimeLocalString).getTime() epoch_s = Math.floor(epoch_ms / 1000)Note: The datetime picker uses the browser's local time zone. If you need to convert a UTC date to epoch, addZto the string before parsing:new Date('2024-01-15T10:30:00Z').getTime(). ### Notable reference values | Description | Unix (seconds) | ISO 8601 (UTC) | |---|---|---| | Unix Epoch | 0 | 1970-01-01T00:00:00.000Z | | Y2K | 946684800 | 2000-01-01T00:00:00.000Z | | Y2K38 (32-bit max) | 2147483647 | 2038-01-19T03:14:07.000Z | | 1 billion seconds | 1000000000 | 2001-09-09T01:46:40.000Z | | 2 billion seconds | 2000000000 | 2033-05-18T03:33:20.000Z | The converter accepts any integer in the range supported by JavaScript'sDateobject (approximately ±8,640,000,000,000,000 milliseconds from the Epoch, covering ±275,760 years).