Unix timestamp converter

Convert Unix timestamps (seconds or milliseconds) to dates in UTC and your time zone, or dates back to timestamps. Shows the current epoch time.

Current Unix time: …

Read as
seconds
UTC
Mon, 15 Jan 2024 14:30:00 GMT
Your time
Mon Jan 15 2024 14:30:00 GMT+0000 (Coordinated Universal Time)
ISO 8601
2024-01-15T14:30:00.000Z

How it works

A Unix timestamp counts seconds since 1 January 1970 00:00:00 UTC. JavaScript and many APIs use milliseconds instead; this tool detects which one you pasted from its length.

Timestamps have no time zone: the same number is the same instant everywhere. The tool shows it in UTC and in your browser's time zone, plus ISO 8601 for APIs.

Questions

Seconds or milliseconds?
Ten digits is seconds (until the year 2286); thirteen digits is milliseconds.
What is the 2038 problem?
Signed 32-bit timestamps overflow on 19 January 2038. 64-bit systems, and this tool, are not affected.

Do this in your code

The same job is one call to the APIStack API, from any language or as a tool for AI agents over MCP. The free plan includes it.

curl -X POST https://apistack.online/api/utilities/unix-timestamp-converter/v1 \
  -H "x-api-key: $APISTACK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"1705329000","operation":"from_timestamp","inputFormat":"seconds","timezone":"America/New_York"}'

Related