Timestamp Converter.
The current Unix time, live — and instant conversion between timestamps and readable dates, entirely in your browser.
- Your local time
- UTC (ISO 8601)
- Relative
Interpreted in your local timezone.
- Unix seconds
- Unix milliseconds
- UTC (ISO 8601)
One number, one instant
Unix time counts the seconds since January 1, 1970, 00:00 UTC — the epoch. Because it is a single number without any timezone attached, it is the standard way to store and compare points in time in databases, logs and APIs. The timezone appears only when you format the number for humans, which is exactly how this converter treats it: store UTC, display local.
Seconds or milliseconds?
The classic off-by-1000 bug: mixing up units. Current Unix time is a 10-digit number in seconds and a 13-digit number in milliseconds. JavaScript's Date.now() gives milliseconds, while date +%s, most APIs and databases use seconds. If your date renders as January 1970, you treated milliseconds as seconds; if it lands 50,000 years in the future, the reverse.
The year-2038 problem
On January 19, 2038 at 03:14:07 UTC, signed 32-bit timestamps overflow and wrap around to 1901. Modern 64-bit systems are safe, but embedded devices, legacy file formats and old database columns are not — worth checking for anything designed to live past 2038.
Prefer ISO 8601 in text
Where humans read the value — logs, JSON APIs, config — use ISO 8601 in UTC: 2026-07-07T09:30:00Z. It is unambiguous, machine-parseable and sorts correctly as a plain string. A good rule: Unix timestamps for storage and math, ISO 8601 for interchange, localized formats only at the UI.
Timestamps in your code
// current time
const ms = Date.now(); // 13 digits
const s = Math.floor(ms / 1000); // 10 digits
// timestamp → date
const date = new Date(1783500000 * 1000);
date.toISOString(); // "2026-07-08T02:40:00.000Z"from datetime import datetime, timezone
now = int(datetime.now(timezone.utc).timestamp())
# timestamp → datetime
dt = datetime.fromtimestamp(1783500000, tz=timezone.utc)
dt.isoformat() # "2026-07-08T02:40:00+00:00"Frequently asked questions
What is a Unix timestamp?
Is my timestamp in seconds or milliseconds?
Do Unix timestamps have a timezone?
What is the year-2038 problem?
Can a Unix timestamp be negative?
Does Unix time count leap seconds?
What is ISO 8601, and how does it relate?
More free tools
All tools →Free tools from a European software company.
- Runs in your browser
- Made & hosted in the EU
- No account needed