🏠 Home
CPS Test Aim Trainer Typing Speed Scroll Speed View All Games →
AI Image Generator Background Remover Social Media Cropper Youtube Thumbnails View All Images →
Word Counter Case Converter Invisible Text Text to Speech View All Text Tools →
JSON Formatter Diff Checker Base64 Converter URL Encoder Meta Tag Generator View All Dev Tools →
Unit Converter Age Calculator BMI Calculator Time Zone Converter View All Calculators →
NEW — 7 DAYS
Home > Developer Tools > URL Encoder / Decoder

URL Encoder / Decoder

Encode or decode URL components, paths, and query strings using percent encoding. Handles special characters, spaces, and Unicode safely.

How to use the URL Encoder / Decoder

Enter any URL component, path segment, or query string into the input field. Click Encode to URL to percent-encode special characters so they are safe for use in URLs, or click Decode to Text to reverse the process. Output appears instantly in the result field.

Special characters like spaces (%20), slashes (%2F), plus signs (%2B), or Unicode characters such as emojis and non-Latin scripts are handled correctly by using the browser's built-in encodeURIComponent and decodeURIComponent functions. No backend or external services are required.

FAQ

What is percent encoding / URL encoding? ▼
Percent encoding (also called URL encoding or percent-encoding) is a mechanism to represent characters that are not allowed directly in a URL. Each disallowed character is replaced by a "%" followed by its hexadecimal ASCII code. For example, a space becomes %20, a slash becomes %2F, and an exclamation mark becomes %21. This ensures URLs remain valid and unambiguous when transmitted over the internet.
Does the tool handle Unicode characters and emojis? ▼
Yes. The tool uses JavaScript's built-in encodeURIComponent() and decodeURIComponent() functions, which properly convert Unicode strings (including emoji, CJK characters, Arabic, Cyrillic, and accented letters) into their percent-encoded UTF-8 representations. A space or Chinese character is encoded as %20 and %E4%BD%A0%E5%A5%BD respectively, and decodes back perfectly.
Can I encode or decode full query strings? ▼
Absolutely. Simply paste your entire query string into the input field. For example, entering q=hello world&lang=en and clicking Encode to URL produces q%3Dhello%20world%26lang%3Den. Conversely, decoding that encoded output restores the original query string. You can also focus the decode button first, paste the encoded string, then get back the decoded result.

Related Tools

For converting text to its binary representation, check out the Text to Binary Translator. To format and pretty-print JSON objects, use the JSON Formatter. Need to compare text side by side? Try the Text & Code Diff Checker.