# Unix timestamp converter

> Convert a Unix timestamp in seconds or milliseconds to a date in any time zone, or a date to epoch time. ISO 8601, relative time and the current time.

URL: https://tools.cuelark.com/unix-timestamp-converter
Publisher: Cuelark Team (https://cuelark.com)
Updated: 2026-11-10
Price: free, no sign-up
Privacy: runs in the browser; files are not uploaded

Paste a Unix timestamp (seconds or milliseconds) to see the date and time in UTC or your chosen time zone, or paste a date to get its epoch seconds and milliseconds. Leave it empty for now.

## How to use it

1. Paste a timestamp or an ISO 8601 date; leave empty for the current time.
2. Pick the time zone to show it in (remembered).
3. Copy the seconds, milliseconds, ISO string or local time.

## Details

- **Epoch:** Seconds since 1970-01-01 00:00:00 UTC, ignoring leap seconds
- **Detection:** 13-digit numbers are milliseconds, shorter ones seconds
- **Input dates:** ISO 8601 with Z or an offset, like 2026-07-04T09:30:00-04:00

## Questions

### Is my timestamp in seconds or milliseconds?

Current times are 10 digits in seconds (1.7 billion) and 13 digits in milliseconds. JavaScript's Date.now() and Java give milliseconds; Unix tools, Python's time.time() and most APIs use seconds.

### Do Unix timestamps have a time zone?

No. A timestamp is the same instant everywhere; the time zone only changes how it's displayed. That's why the converter shows UTC and your chosen zone.

### What is the year 2038 problem?

Signed 32-bit seconds run out at 03:14:07 UTC on 19 January 2038 (2147483647). Systems that store time in 64 bits, as modern ones do, are fine.

### How do I get the current timestamp in code?

JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). Shell: date +%s. SQL (Postgres): extract(epoch from now()).

### Is what I type sent anywhere?

No. The calculation runs in this browser tab with the same code our MCP server uses. Nothing you type is sent to a server or saved, apart from settings like filing status, which stay in this browser.

### Can an AI agent use this?

Yes. The same function is a tool on our free MCP server at tools.cuelark.com/mcp, so ChatGPT, Claude or Cursor get exactly the answer this page shows. 'Copy MCP call' gives you the arguments.

## Related tools

- [Time zone converter](https://tools.cuelark.com/time-zone-converter)
- [JWT decoder](https://tools.cuelark.com/jwt-decoder)
- [Date calculator](https://tools.cuelark.com/date-calculator)
- [Cron expression generator](https://tools.cuelark.com/cron-expression)
