🔤 URL Encoding Space Overhead
Estimate the percent-encoding size growth of a URL or query string to anticipate parameter bloat in links.
📐 計算公式與說明
每個非 ASCII/特殊字元編碼為 %XX(3 字元)
空格編碼為 %20 或 +
空格編碼為 %20 或 +
用於預估 URL 引數長度。
Estimate the percent-encoding size growth of a URL or query string to anticipate parameter bloat in links.
用於預估 URL 引數長度。
| Item | Formula / Rule | Source / Standard |
|---|---|---|
| Unreserved set | 66 characters stay literal: A–Z, a–z, 0–9, "-", ".", "_" and "~" | RFC 3986 §2.3 Unreserved Characters |
| Encoded length | Lout = literal characters + 3 × bytes needing escape | RFC 3986 §2.1 Percent-Encoding |
| Literal share | Share = unreserved characters ÷ total characters × 100% | WHATWG URL Standard, percent-encode sets |