URL Encoder / Decoder

Encode and decode URLs instantly. Supports full URI, component encoding, Unicode/UTF-8, and batch processing — all 100% in your browser.

URL Encoder / Decoder

0
Input Length
0
Output Length
0
Chars Encoded
1.0x
Size Ratio

Common URL Encodings

Character Encoded Description
(space)%20Space character
!%21Exclamation mark
#%23Hash / fragment
$%24Dollar sign
&%26Ampersand
'%27Apostrophe
+%2BPlus sign
/%2FForward slash
:%3AColon
=%3DEquals sign
?%3FQuestion mark
@%40At sign

Free Online URL Encoder & Decoder

Encode and decode URLs instantly. Supports full URI, component encoding, Unicode/UTF-8, and batch processing — all 100% in your browser.

Why URL Encoding Matters

URLs can only contain a limited set of characters from the ASCII character set. When you need to include special characters — spaces, accented letters, symbols, or any non-ASCII text — they must be percent-encoded to ensure the URL is valid and works correctly across all browsers, servers, and APIs.

Encoding Modes Explained

  • encodeURIComponent — Encodes everything except letters, digits, and - _ . ~. Best for query parameter values.
  • encodeURI — Preserves URL-safe characters like : / ? # [ ] @ ! $ & ' ( ) * + , ; =. Best for full URLs.
  • Path Only — Encodes a URL path segment, preserving / separators.
  • Query String — Encodes for application/x-www-form-urlencoded format (spaces become +).
  • Custom — Choose exactly which characters to encode.

Features

  • Real-time encoding and decoding as you type
  • 5 encoding modes for different use cases
  • Batch processing — encode multiple URLs line by line
  • Full Unicode/UTF-8 support
  • URL validation
  • Copy to clipboard and download output
  • Dark mode and mobile-responsive design
  • 100% client-side — your data never leaves your browser

Frequently Asked Questions

What is URL encoding?
URL encoding (also called percent encoding) converts characters into a format that can be safely transmitted in a URL. Special characters like spaces, ampersands, and non-ASCII characters are replaced with a percent sign (%) followed by their hexadecimal value. For example, a space becomes %20.
When should I use URL encoding?
You should URL encode any data that will be included in a URL — especially query parameters, form data, file names, and any user-generated content. This prevents broken links, security vulnerabilities, and ensures your URLs work correctly across all browsers and servers.
What is the difference between encodeURI and encodeURIComponent?
encodeURI() encodes a full URI, preserving characters like :, /, ?, #, and & that have special meaning in URLs. encodeURIComponent() encodes everything including those special characters, making it ideal for encoding individual query parameter values.
How does URL decoding work?
URL decoding reverses the encoding process. It reads percent-encoded sequences (like %20 or %C3%A9) and converts them back to their original characters. Our tool automatically detects and decodes all standard percent-encoded sequences.
Does URL encoding support Unicode characters?
Yes. Unicode characters are first encoded as UTF-8 bytes, then each byte is percent-encoded. For example, the character é (U+00E9) becomes %C3%A9 in URL encoding. Our tool fully supports Unicode/UTF-8 encoding and decoding.
Is my data safe using this tool?
Absolutely. All encoding and decoding happens entirely in your browser using JavaScript. Your data never leaves your device — there are no server requests, no cookies, and no tracking. It is 100% client-side and private.
What characters need to be URL encoded?
Characters outside the unreserved set (A-Z, a-z, 0-9, -, _, ., ~) should be encoded. Reserved characters like !, #, $, &, ', (, ), *, +, ,, /, :, ;, =, ?, @, [, ] have special meaning in URLs and must be encoded when used as data rather than delimiters.