Unix Timestamp Converter
Epoch seconds and milliseconds to dates in any time zone, and back.
● Runs 100% in your browser — nothing you type leaves this page.
Now: 1794746031
How to use it
Paste a timestamp or a date. The tool works out what it is:
- 10 digits — seconds (Unix time, used by most Linux tools, JWTs, databases);
- 13 digits — milliseconds (JavaScript, Java, many APIs);
- 16 / 19 digits — microseconds / nanoseconds (some logs, Go, tracing systems);
- a date —
2026-11-02T09:20:00Z,Mon, 02 Nov 2026 09:20:00 GMTand similar.
You get the same moment as Unix seconds and milliseconds, ISO 8601, RFC 2822, in the time zone you choose, and as “3 hours ago”. Now fills in the current time.
On the command line
date +%s # now, in secondsdate -u -d @1762075200 # seconds → date (GNU/Linux)date -u -r 1762075200 # the same on macOS / BSDdate -d '2026-11-02 09:20:00 UTC' +%s # date → secondsIn SQL: to_timestamp(1762075200) in PostgreSQL, FROM_UNIXTIME(1762075200) in MySQL.
Note
A Unix timestamp has no time zone — it’s the number of seconds since 1 January 1970, 00:00 UTC. The time zone only matters when you show it as a date. If two systems disagree by exactly a few hours, one of them is formatting the same timestamp in local time.
FAQ
Why is my date in 1970, or in the year 50000?
The unit is wrong: a timestamp in milliseconds read as seconds lands tens of thousands of years in the future; seconds read as milliseconds land in January 1970.
What is the year 2038 problem?
Systems that store Unix time in a signed 32-bit number overflow on 19 January 2038, 03:14:07 UTC. Current 64-bit systems are fine; old embedded devices and some file formats aren’t.
Why would I convert a timestamp from a token?
exp and iat in a JWT are Unix timestamps in seconds. If a token is refused as expired, comparing them with the time now is the first check: see JWT “jwt expired”.
Articles
Learn more
"Certificate has expired": check the dates, renew it, and find out why it didn't renew
Fix "certificate has expired" and NET::ERR_CERT_DATE_INVALID: check the dates with openssl, renew with Certbot, reload the server, and fix why renewal or clock failed.
Beginner · 4 min read
JWT "jwt expired" and "invalid signature": how to find out what is wrong with a token
Fix JWT "jwt expired" and "invalid signature": read the exp claim, check clock differences, the secret, HS256 vs RS256 and rotated keys, without turning verification off.
Intermediate · 5 min read