Example 1
- 200 characters
- chars-to-bytes
≈ 150 B
How many B from 200 characters? ≈ 150 B. A Base64 estimate, not a JWT decoder.
Type characters or bytes. 200 characters give ≈ 150 B. 300 B in bytes-to-chars stays ≈ 300 B. 1024 characters give ≈ 768 B. A Base64 estimate, not a JWT decoder.
The integer part of (n×3/4) from characters, or ceil(n/3)×4 the other way. The result is the bytes line. Not a decoder. 4-on-3 overhead sits on Base64 size.
Enter data and click Calculate.
JWT token in this calculator estimates bytes from a length. 200 characters give ≈ 150 B. 300 in bytes-to-chars stays ≈ 300 B, because the result is the bytes line. 1024 characters give ≈ 768 B. A Base64 estimate, not a JWT decoder.
Field jwt-chars is a number. Select jwt-base in the examples is chars-to-bytes, bytes-to-chars, then chars-to-bytes again. the integer part of 200×3/4 = 150. 300 B stays 300 on the bytes side. the integer part of 1024×3/4 = 768.
150 B is not a decoded payload. 300 B is not a signature check. 768 B does not know an Authorization header. You type the length. The calculator does not parse a JWT.
Base64 size next door counts ceil(n/3)×4. JSON size multiplies characters. Here 200 stays ≈ 150 B, the 3-on-4 overhead alone.
Type 200 and chars-to-bytes, then Calculate. The result is ≈ 150 B. Zero leaves 0 B. This is not a token decoder.
200 give ≈ 150 B. 300 B stays ≈ 300 B. 1024 give ≈ 768 B. Another mode at 200 changes the calculator; the result keeps bytes.
chars to bytes: floor(n×3/4). Bytes to chars: ceil(n/3)×4. The result is the B line. Not a JWT decoder.
A Base64 estimate, not a JWT decoder. 200 give ≈ 150 B. 1024 give ≈ 768 B.
≈ 150 B
How many B from 200 characters? ≈ 150 B. A Base64 estimate, not a JWT decoder.
≈ 300 B
What about 300 B in bytes-to-chars? ≈ 300 B. The result stays the bytes line.
≈ 768 B
What about 1024 characters? ≈ 768 B.
≈ 150 B. That is the integer part of 200×3/4. A Base64 estimate, not a JWT decoder.
≈ 300 B. The result is the bytes line.
≈ 768 B. That is the integer part of 1024×3/4.
No. Length only. No signature and no payload.
chars-to-bytes goes to B. bytes-to-chars goes to characters. The result stays B.
No. A 3-on-4 estimate. Not a file and not a odczyt nagłówka.
Yes as 0 B. A blank field is a number error.
On Base64 size. Here ≈ 150 B from 200 stays.
No. No iss, exp, or signature. Length only.
The calculator counts bits, bytes or throughput from your numbers. Below are SI and bit definitions (NIST).
Page updated in 2026.
JWTs ride along on many requests via Authorization, cookies, or bodies. Larger tokens mean more bytes × RPS, cookie-limit risk (~4 KB), and possible proxy rejection.
This calculator estimates size from Base64URL characters or pre-encode bytes. It does not decode claims or judge security.
alg, typ).Three Base64URL segments joined by dots — token.length in DevTools is the on-the-wire character count.
sub + server-side lookup.“Just add more claims” has a cost: every request carries that baggage. A short access token plus session/cache data is often healthier.
A short token is not “more secure” and a long one is not “more secure” — that axis is signature, TTL, rotation, audience. This tool only helps you avoid transport limits and wasted bytes.
Chars → bytes mode uses the integer part of (n×3/4).
| Token characters | ≈ bytes | Intuition |
|---|---|---|
| ~200 | ~150 B | compact access token |
| ~800 | ~600 B | a few claims + roles |
| ~3000 | ~2250 B | near cookie limits |
| ~5000+ | — | consider opaque session / reference |
Measure precisely: copy the full token and use token.length.