URL Encoder Decoder — Encode & Decode URLs, Base64 & Query Strings Free
Encode or decode URLs with percent-encoding, encode/decode Base64 strings, and parse URL query parameters — all instantly in your browser. No login. No data uploaded. Essential for developers, SEOs, and QA engineers.
⚡ All processing in your browser. Your data never leaves this page.
What is URL Encoding?
URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a safe format. Special characters like spaces, &, =, ?, #, and non-ASCII characters are replaced with a % sign followed by two hexadecimal digits. For example, a space becomes %20 and © becomes %C2%A9.
This tool handles three encoding functions: encodeURIComponent (for query parameter values), encodeURI (for full URLs), and decodeURIComponent (for decoding any percent-encoded string).
When Do You Need URL Encoding?
Frequently Asked Questions
What is URL encoding?
URL encoding converts characters that are not allowed in URLs into a percent-encoded format. Spaces become %20, & becomes %26, and so on. It ensures URLs are valid and can be transmitted safely over the internet.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a complete URL and preserves characters with special URL meaning like /, ?, =, &, #. encodeURIComponent encodes individual component values (like query parameter values) and encodes all special characters including those preserved by encodeURI.
What is Base64 encoding?
Base64 encoding converts binary or text data into a string of ASCII characters using 64 printable characters. It's commonly used to embed images in HTML/CSS, encode email attachments, and transmit data in JSON APIs.
Is my data safe using this tool?
Yes. All encoding and decoding happens entirely in your browser using JavaScript. No data is ever sent to any server, logged, or stored anywhere.
What is %20 in a URL?
%20 is the percent-encoded representation of a space character. It appears in URLs when a space is present in a query parameter or path segment. You can also use + to represent a space in query strings.