Input unit
Time zone

Current time

Unix seconds
Unix milliseconds

Unix time → Date

UTC
Local
ISO 8601
Relative

Date → Unix time

Unix seconds
Unix milliseconds

A two-way converter between Unix timestamps (epoch time) and human-readable dates. Use it when you find a number like `1700000000` in a log or database and need to know when that is, or when you need to turn a specific date into Unix time to paste into code or a query. You can set the input unit explicitly to seconds or milliseconds, or pick "Auto" to infer it from the digit count (13+ digits is treated as milliseconds). Results are shown in both UTC and your device's local time, as an ISO 8601 string like `2024-01-02T03:04:05.000Z`, and as a relative phrase such as "3 minutes ago" or "in 2 days". A time-zone toggle switches between Local and UTC, which also controls how the wall-clock time you type is interpreted when converting a date back to Unix time. The top of the page shows the current epoch in seconds and milliseconds, updated every second, with one-click copy — handy for grabbing a "now" value or test data. Your unit and time-zone choices are saved in your browser so it opens the same way next time. Importantly, neither the values you enter nor the results are ever uploaded, stored, or sent to a server — all computation happens with JavaScript's `Date` / `Intl` entirely inside your browser, so it's safe to use with internal logs or timestamps. Because mixing up seconds and milliseconds is a classic bug, the unit is made explicit.

How to use

  1. Paste a number into "Unix time → Date" to see UTC, local, ISO 8601, and a relative phrase (unit: sec / ms / auto).
  2. Enter a date in "Date → Unix time" to get epoch seconds and milliseconds. Toggle the time zone (Local / UTC).
  3. The current epoch in seconds and milliseconds ticks at the top — copy any value. Nothing you enter is sent anywhere.

FAQ

Are the values I enter uploaded anywhere?

No. Conversion runs entirely in your browser with JavaScript's Date / Intl. Neither your input nor the results are uploaded, stored, or sent to a server, so even sensitive log timestamps stay on your device.

How do I tell seconds from milliseconds?

You can set the input unit explicitly to seconds or milliseconds. With "Auto", it infers the unit from the digit count: 13 or more digits is treated as milliseconds, fewer as seconds. When in doubt, fix the unit for certainty.

Is the result in UTC or local time?

Both. "Unix time → Date" shows UTC and your device's local time side by side. For "Date → Unix time", a time-zone toggle lets you interpret the time you typed as either Local or UTC wall-clock time.

Does it show relative time like "3 minutes ago"?

Yes. The Unix-time-to-date result includes the difference from now as a relative phrase such as "3 minutes ago" or "in 2 days", using the browser's built-in Intl.RelativeTimeFormat.

Are my settings remembered next time?

Your input unit (sec / ms / auto) and time zone (Local / UTC) are saved in your browser and restored next time. The values you type are not saved.