Unix Timestamp Converter - Epoch to Date
Convert between Unix epoch timestamps and human-readable dates instantly. Supports seconds and milliseconds with timezone awareness.
Runs in your browser. No data leaves your device.
About this tool
Converts between Unix epoch timestamps and human-readable dates. It shows the live current timestamp, converts a timestamp to UTC/local/ISO 8601, turns a date and time into seconds and milliseconds, and parses free-form date strings. Aimed at developers working with logs, APIs and databases.
Features
- Live current Unix timestamp in seconds (updated every second) with its ISO 8601 time, a copy button and a Pipeline button to send it to other tools
- Timestamp to date: shows UTC (toUTCString), local (toLocaleString with the time zone abbreviation) and ISO 8601; values whose size is above 1e12 (positive or negative) are treated as milliseconds, smaller ones as seconds
- Date to timestamp: pick a date and optional time (local time, default 00:00) to get seconds and milliseconds
- Parse date string: accepts anything the browser's Date parser understands (e.g. 2024-01-15T10:30:00Z, Jan 15 2024, 01/15/2024) and returns seconds, milliseconds, UTC and ISO 8601
- Copy button on every result row
- Inline "Invalid timestamp" / "Could not parse date string" errors
How to use it
- Copy the current timestamp from the top panel, or
- Paste a timestamp into "Timestamp to Date" to read it as a date, or
- Pick a date/time in "Date to Timestamp" to get epoch seconds and milliseconds, or
- Type any date text into "Parse Date String".
Inputs
- Integer Unix timestamp in seconds or milliseconds (negative values for pre-1970 dates work); anything other than a whole number, such as decimals or trailing letters, shows "Invalid timestamp"
- Date and time from browser pickers (interpreted in local time)
- Free-form date string
Outputs
- UTC string, local date-time string, ISO 8601 string
- Epoch seconds and milliseconds
Limits and notes
- Seconds vs milliseconds is detected only by the 1e12 threshold, so a millisecond timestamp before about September 2001 is read as seconds
- Date-string parsing depends on the browser's Date implementation; strings without a zone are usually read as local time (date-only ISO strings like 2024-01-15 as UTC)
- Inputs are not saved; nothing is uploaded
Frequently Asked Questions
How does the Unix Timestamp Converter work?
The live clock divides Date.now() by 1,000 and floors it every second. For timestamp-to-date conversion, the tool auto-detects seconds vs. milliseconds by checking if the input exceeds 1e12, then passes the value to the Date constructor. For date-to-timestamp, it constructs a Date from the input and divides getTime() by 1,000. All formats (UTC, local, ISO 8601) use the Date object's built-in formatting methods.
What is a Unix timestamp?
A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC. It is a standard way to represent time in programming and databases.
How do I know if my timestamp is in seconds or milliseconds?
Timestamps in seconds are typically 10 digits (e.g., 1700000000). Timestamps in milliseconds are 13 digits (e.g., 1700000000000). The tool detects and handles both formats automatically.
Does the converter account for my local timezone?
Yes. The human-readable date is displayed in your local timezone. The underlying Unix timestamp is always UTC, but the output adjusts to show what that moment looks like in your timezone.