TheDevTab
Tools

Keyboard shortcuts

Ctrl K
Search tools and guides
?
Show keyboard shortcuts
Escape
Close menus and dialogs

Unix Timestamp

Convert unix time in your browser.

This runs in your browser. Nothing is uploaded.

Now: Loading...

Unix seconds and milliseconds

Unix timestamps count seconds from 1970-01-01 00:00:00 UTC. Ten-digit values are usually seconds, while thirteen-digit values are usually milliseconds.

Current Unix seconds are usually ten digits. Current Unix milliseconds are usually thirteen digits. The same instant therefore appears as a much larger number in JavaScript, whereDate.now() returns milliseconds. A value with the wrong unit can land decades away from the intended date, so check the result rather than relying only on digit count.

Nothing is uploaded while you convert. JWT exp, nbf, andiat claims are normally Unix seconds, so you can inspect them with theJWT Decoder. If a claim looks like milliseconds, verify the issuer's contract before converting it.

UTC is the reference point

Unix time counts from 1970-01-01 00:00:00 UTC. It is not a local clock reading and it does not change when daylight saving rules change. This page displays the UTC result and a local-time result for your browser's time zone.

ISO 8601 input can include a Z suffix or an explicit offset. Read that offset before comparing a date with a timestamp. A local date with no offset can be ambiguous in other tools, so use an explicit UTC value when you are writing logs or an API contract. The guideUnix timestamps explained includes examples for both units.

Use timestamps as values, not explanations

A timestamp tells you when an event was represented, not why it happened or whether a request was authorized. Keep the original value when debugging, record the unit in your schema, and avoid converting back and forth repeatedly. For token claims, inspect the surrounding header and payload with the JWT Decoder before drawing a security conclusion.

FAQ

Does TheDevTab upload my timestamp?

No. Conversion runs in your browser, and TheDevTab never receives the timestamp you enter.

What is a Unix timestamp?

A Unix timestamp counts time from 1970-01-01 00:00:00 UTC. Unix seconds usually have 10 digits, while Unix milliseconds usually have 13 digits.

Can I convert an ISO 8601 timestamp?

Yes. Enter an ISO 8601 date with a Z or offset, or an ISO-looking date and time that should be interpreted as UTC.

Are JWT exp and iat values Unix timestamps?

Yes. JWT exp, nbf, and iat claims are commonly Unix seconds. Use the JWT Decoder to inspect those claims in your browser.

Does this tool use UTC?

Yes. Unix time is defined relative to 1970-01-01 00:00:00 UTC. The tool shows the UTC result and a local-time result for your browser time zone.

How do I tell seconds from milliseconds?

A current Unix timestamp in seconds is usually ten digits. The same instant in milliseconds is usually thirteen digits. If a value is ambiguous, compare it with the expected date before storing it.