๐Ÿ”’ Free Security Tool

Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates instantly. See the live current epoch time โ€” essential for debugging TOTP, JWTs, and API tokens.

Current Unix Timestamp
TOTP window: ยท s remaining

โฐ Why Timestamps Matter for 2FA

TOTP codes are generated using Unix timestamps divided into 30-second windows. A clock even slightly out of sync will cause code mismatches.

๐Ÿ”‘ JWT Debugging

JWTs use iat, exp, and nbf claims as Unix timestamps. Use this tool to decode when a token was issued and when it expires.

๐ŸŒ Timezone-Safe

Unix timestamps are always UTC โ€” no timezone ambiguity. This makes them the universal standard for APIs, databases, and security tokens.

Frequently Asked Questions

What is a Unix timestamp?

A Unix timestamp is the number of seconds elapsed since January 1, 1970 at 00:00:00 UTC โ€” also called the Unix epoch. It's a timezone-agnostic way to represent any moment in time, used universally in programming, APIs, databases, and security protocols.

Why does TOTP use Unix timestamps?

TOTP (Time-based One-Time Password) codes are generated by dividing the current Unix timestamp by 30 to get a "window" number, then combining that with your secret key via HMAC-SHA1. Both your authenticator app and the server independently calculate the same window, so they always produce the same code โ€” without communicating.

What's the difference between seconds and milliseconds timestamps?

Unix timestamps are traditionally in seconds (10 digits today). JavaScript's Date.now() returns milliseconds (13 digits). TOTP and most security protocols use seconds. APIs vary โ€” always check the documentation. If your timestamp has 13 digits, divide by 1000 to get seconds.

What is the Year 2038 problem?

32-bit signed integers can store Unix timestamps up to 2,147,483,647 โ€” which corresponds to January 19, 2038 at 03:14:07 UTC. After that point, 32-bit systems will overflow. Modern systems use 64-bit integers, which won't overflow for billions of years.

Related Tools

๐Ÿช™ JWT Decoder Decode and inspect JSON Web Tokens โ†’ ๐Ÿ”‘ TOTP Code Generator Generate live 2FA codes from any secret key โ†’ ๐Ÿ”‘ TOTP Secret Key Generator Generate secure base32 secret keys โ†’ #๏ธโƒฃ Hash Generator SHA-256, MD5 and more โ†’