encodeURI vs encodeURIComponent: Which One to Use
Which characters each JavaScript function encodes, how the wrong choice breaks query values and URLs, decodeURI vs decodeURIComponent, with real outputs.
November 25, 2026 · 9 min read
Short, practical guides to the encodings behind the tools on this site: how the standards actually work, what goes wrong, and how to fix it.
Which characters each JavaScript function encodes, how the wrong choice breaks query values and URLs, decodeURI vs decodeURIComponent, with real outputs.
November 25, 2026 · 9 min read
Where + means a space and where it is a plus sign, what every major language encodes and decodes, and how to send a literal + safely.
November 25, 2026 · 8 min read
Every cause of URI malformed with a real example: stray % signs, Latin-1 bytes, cut UTF-8, double decoding. Plus safe-decode code you can copy.
November 25, 2026 · 8 min read
Read and build query strings in JavaScript: get, getAll, set, append, sort, how it encodes, repeated keys, and the URL object setters.
November 25, 2026 · 10 min read
Which characters a URL may contain, which must be encoded, what browsers do with invalid ones, and how to fix Invalid URL and URI malformed errors.
November 18, 2026 · 6 min read
Find the real destination inside redirect, tracking and email-scanner links. Where the address hides, how to decode wrapped links, and links you cannot decode.
November 18, 2026 · 5 min read
%26, & and Base64 solve different problems. A side-by-side comparison with real outputs, when to use each, and how links in HTML need two layers.
November 18, 2026 · 5 min read
Why @ : / ? # break connection strings, what MongoDB and PostgreSQL require, and the right encoding call in JavaScript, Python and C#, with real outputs.
November 18, 2026 · 5 min read
What the browser sends, how servers decode the path and query, why + becomes a space, and why decoding twice is a security bug.
November 18, 2026 · 6 min read
How query strings work, how URLSearchParams and Python read repeated, empty and array keys, how to build one safely, and how long one can be.
November 18, 2026 · 6 min read
Scheme, host, port, path, query and fragment, labelled on a real URL, plus the difference between URL, URI and URN.
November 18, 2026 · 5 min read
A scrambled-looking link is usually encoded, not encrypted. How to tell percent-encoding, Base64, JWTs and hashes apart, and which ones you can reverse.
November 4, 2026 · 5 min read
Percent-encoding turns unsafe characters into %XX sequences so URLs stay unambiguous. How it works, what the unreserved set is, and where it bites.
July 5, 2026 · 4 min read
Double encoding, encoding whole URLs, plus signs in paths, unencoded redirect parameters, and charset mojibake: the six mistakes behind most broken URLs.
July 5, 2026 · 5 min read
Why é can become %C3%A9 or %E9 depending on the character set, what mojibake like é really is, and the modern rule for encoding non-English text in URLs.
July 5, 2026 · 4 min read
A JWT is readable by anyone who holds it. What the three parts contain, what the registered claims mean, and the difference between decoding and verifying.
July 5, 2026 · 4 min read
Base64 is transport armour for bytes, not encryption. How the encoding works, why output grows by a third, and when to use something else.
July 5, 2026 · 4 min read