πŸ”— URL Encode / Decode

Convert characters and symbols to percent encoding (%XX), or decode them back.

How to use

  1. Enter the text you want to encode or decode.
  2. Click "Encode" or "Decode".
  3. Use the copy button to grab the result.

🎯 Use Cases

Example

Input
https://example.com/검색?q=μ•ˆλ…•ν•˜μ„Έμš”
Output
https%3A%2F%2Fexample.com%2F%EA%B2%80%EC%83%89%3Fq%3D%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94

Clicking "Encode" percent-encodes every reserved symbol (colon, slash, question mark) and each non-ASCII character as %XX. Because these Korean characters are 3 bytes each in UTF-8, they become three %XX pairs apiece. Running "Decode" on the output restores the original string.

encodeURI vs. encodeURIComponent

JavaScript has two URL-encoding functions. This tool uses encodeURIComponent, which is meant for encoding a single "piece" of a URL β€” like a query parameter value β€” rather than a whole URL, so it also encodes delimiter characters like : / ? & =.

FunctionCharacters preservedWhen to use
encodeURIPreserves URL delimiters like : / ? # [ ] @ & = + $ , ;Encoding a complete, full URL
encodeURIComponent (this tool)Only preserves - _ . ! ~ * ' ( ), encodes everything elseEncoding a single piece β€” e.g. a query parameter value

For example, encodeURI("https://a.com/search?q=1&2") leaves & and ? untouched, while encodeURIComponent encodes &, ?, and / as well. Always use encodeURIComponent when encoding a single query parameter value, so an unencoded & doesn't get mistaken for a separator between parameters.

FAQ

Is what I type sent to a server?
No. It's processed using the browser's built-in encodeURIComponent/decodeURIComponent functions.
Which characters get encoded?
Every character except letters, digits, and a handful of special characters (-_.!~*'()) is encoded as %XX.
Does a space get encoded as %20 or +?
This tool encodes spaces as %20. A + only means "space" in application/x-www-form-urlencoded (HTML form submissions) β€” %20 is the standard for URL paths and query parameters.
What if decoding fails with an error?
An error message appears if the input contains a malformed % escape sequence. Check that the original encoded string is intact.

More Text Tools

πŸ“
Markdown Preview
Live-preview Markdown as HTML
✏️
Find & Replace
Search & replace with regex support
πŸ†š
Text Diff
Compare two texts line by line
↕️
List Sorter
Sort a list & remove duplicates
πŸ“§
Email Extractor
Extract & dedupe emails from text
πŸ”’
Character Counter
Count characters, bytes, lines & words
πŸ” 
Case Converter
Convert to UPPER/lower/Title Case
πŸ”€
Fullwidth/Halfwidth Converter
Convert fullwidth chars ↔ halfwidth ASCII
🈚
Unicode Inspector
Check code points & look up characters
πŸ”Ÿ
Text to Decimal
Convert text ↔ decimal code points
🧾
Text to Hex
Convert text ↔ UTF-8 byte hex
0️⃣
Text to Binary
Convert text ↔ UTF-8 byte binary
πŸ”‘
ASCII Art Generator
Turn text into an ASCII art banner