Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and dates back to Unix timestamps. Get the current timestamp instantly.

Current Unix Timestamp (seconds)

About Unix Timestamps

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC. It's the standard way to represent time in databases, APIs, and logs.

Tips

Milliseconds — JavaScript uses milliseconds (Date.now()). Divide by 1000 to get seconds.

ISO 8601 — The standard date format is 2024-01-01T00:00:00Z. The Z suffix means UTC.

Negative timestamps — dates before 1970 have negative Unix timestamps.

API Example

## Timestamp to date
curl -X POST https://apitoolkit.pro/api/v1/timestamp \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"to_date","input":"1704067200"}'

## Date to timestamp (JavaScript)
const res = await fetch('https://apitoolkit.pro/api/v1/timestamp', {
  method: 'POST',
  headers: { 'X-Api-Key': 'YOUR_API_KEY', 'Content-Type': 'application/json' },
  body: JSON.stringify({ action: 'to_unix', input: '2024-01-01T00:00:00Z' })
});
const { result } = await res.json();
console.log(result); // "1704067200"

Get API Key — $5/mo →

Other Free Developer Tools