# Unix timestamp converter

Convert a Unix timestamp to a date, or a date to a Unix timestamp, in one field. Seconds, milliseconds, microseconds and nanoseconds are detected; shows UTC, your time zone and ISO 8601.

Page: https://toolkitnow.org/tools/timestamp-converter/

Type a timestamp to get the date, or a date such as 2026-11-11 21:00 to get the timestamp. The gray text is an example.

## Good to know

### What it is

Unix time counts seconds since 1 January 1970, 00:00 UTC. It is the same number in every time zone; only the date it shows as changes.

### Units

The unit is read from the number of digits: 10 for seconds (until the year 2286), 13 for milliseconds, 16 for microseconds, 19 for nanoseconds.

### Writing dates

Year first: `2026-11-11`, `2026-11-11 21:00` or `2026-11-11 21:00:30`. Without a time zone both readings are shown, as UTC and as your local time; add `Z`, `UTC` or an offset such as `-05:00` to get one.

### Now in code

JavaScript `Math.floor(Date.now() / 1000)`, Python `int(time.time())`, shell `date +%s`, PostgreSQL `extract(epoch from now())`.

### 2038

Systems that store the seconds as a signed 32-bit number overflow on 19 January 2038 at 03:14:07 UTC (2147483647). Negative numbers are dates before 1970.

### Open from a link

`?t=1794355200` or `?t=2026-11-11T00:00Z` opens the page with the answer.

Runs in the browser; nothing is uploaded. Part of toolkitnow.org.
