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 |