This tool converts between human-readable date/time values and Unix timestamps — entirely inside your browser. No data is sent to a server.
A Unix timestamp (also called an epoch timestamp) is the number of seconds — or milliseconds — that have elapsed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. It is a timezone-independent, language-agnostic way to represent a point in time and is widely used in databases, APIs, log files, and JWT tokens.
All date arithmetic uses JavaScript's built-in
Date
object — no third-party library is needed.
<input type="datetime-local"> value is parsed with new Date(val).
Date.getTime() returns the Unix timestamp in milliseconds;
dividing by 1000 and flooring gives seconds.
The input is pre-filled with the current local time for convenience.
Date object is then formatted as
UTC, local, and ISO 8601 strings using the browser's native formatting methods.
setInterval callback fires every second, calling new Date()
and updating the current seconds, milliseconds, and UTC string in real time.
| Format | Method | Example |
|---|---|---|
| UTC | Date.toUTCString() | Sat, 01 Jan 2000 00:00:00 GMT |
| Local | Date.toLocaleString() | Depends on browser locale |
| ISO 8601 | Date.toISOString() | 2000-01-01T00:00:00.000Z |
All conversions run locally in your browser tab. No timestamps or dates are transmitted anywhere.