URL Encoder & Decoder — Percent-Encode or Decode URLs Instantly
Our URL Encoder / Decoder converts text to and from percent-encoding (the %XX format used in URLs and query strings) using the browser's native encodeURIComponent and decodeURIComponent functions. Toggle between Encode and Decode mode, type or paste your text, and see the result update instantly. Malformed percent-encoded sequences on decode are caught and reported clearly instead of crashing. Everything happens locally — no text is ever sent to a server.
Your encoded or decoded result will appear here
How to Use the URL Encoder / Decoder — Free Online Percent-Encoding Tool
- 1
Choose Encode to percent-encode text for safe use in a URL, or Decode to convert a percent-encoded string back to plain text.
- 2
Paste or type your input into the text area.
- 3
The result appears instantly below as you type — no button click required.
- 4
Click 'Copy' to copy the encoded or decoded result to your clipboard.
Why Use URL Encoder / Decoder — Free Online Percent-Encoding Tool?
URLs can only safely contain a limited set of characters — letters, digits, and a handful of punctuation marks. Spaces, ampersands, question marks, and non-ASCII characters like accented letters or emoji must be percent-encoded (represented as %XX, where XX is the character's hex byte value) before they can be safely included in a URL path, query string, or form submission. Without correct encoding, URLs break, query parameters get truncated at unescaped '&' or '=' characters, and non-ASCII text becomes garbled. This tool uses JavaScript's built-in encodeURIComponent, which correctly UTF-8-encodes Unicode text before percent-encoding it, and decodeURIComponent, which reverses the process. Decoding a malformed percent-encoded string (like a lone '%' not followed by two hex digits) normally throws a URIError — this tool catches that and shows a readable error instead of crashing.
Frequently Asked Questions
Related Tools
Base64 Encoder / Decoder — Free Online Tool
Encode text to Base64 or decode Base64 back to plain text instantly in your browser. Handles UTF-8 and Unicode correctly. Free, no signup, no data sent to a server.
JSON Formatter & Validator — Free Online Beautifier
Format and validate JSON with proper indentation, or minify it to save space. Instantly catches syntax errors with a clear message. Free, no signup, runs entirely in your browser.
Regex Tester — Free Online Regular Expression Tool
Test regular expressions against sample text with live match highlighting, capture groups, and flag support (g, i, m, s, u). Free, no signup, runs entirely in your browser.