UUtiliTools
home/cybersecurity/url-encoder

URL Encode / Decode

Encode or decode URLs and query parameters instantly. Supports full URL encoding (encodeURI) and component encoding (encodeURIComponent).

0 characters
0 characters

Common URL Encodings

CharacterEncodedDescription
%20 or +Space
!%21Exclamation mark
#%23Hash / Fragment
$%24Dollar sign
&%26Ampersand
'%27Apostrophe
(%28Open parenthesis
)%29Close parenthesis
+%2BPlus sign
,%2CComma
/%2FSlash
:%3AColon
=%3DEquals sign
?%3FQuestion mark
@%40At sign

encodeURI vs encodeURIComponent

encodeURI preserves URL-structural characters like :, /, ? and #. Use encodeURIComponent when encoding individual query parameter values that may contain those characters.

Why percent-encode?

URLs can only contain ASCII characters. Percent-encoding converts unsafe characters (spaces, unicode, special symbols) into a portable format that works across all browsers and servers.

Common pitfalls

Double-encoding happens when you encode an already-encoded string. Spaces can be encoded as %20 or + depending on context. Always decode before re-encoding to avoid issues.

Email

How to Use URL Encoder / Decoder

The URL Encoder/Decoder tool lets you percent-encode or decode strings for safe use in URLs, query parameters, and form data. It handles all reserved and special characters according to RFC 3986. Run it entirely in your browser with no data leaving your machine.

1

Open the URL Encoder Tool

Navigate to the URL Encoder/Decoder page from the tools menu. The interface provides separate sections for encoding and decoding operations.

2

Paste or Type Your Text

Enter the string you want to encode or decode into the input text area. This could be a full URL, a query parameter value, or any arbitrary text containing special characters.

3

Select the Operation

Choose between Encode or Decode mode. Encoding converts special characters to percent-encoded equivalents, while decoding reverses the process back to readable text.

4

View the Result

The output appears instantly in the result area. Encoded output will show percent-encoded characters like %20 for spaces, %26 for ampersands, and so on.

5

Copy the Output

Click the copy button to place the encoded or decoded result on your clipboard, ready to paste into your code, API client, or browser address bar.

Common Use Cases

Building API Query Strings

Safely encode parameter values containing special characters before appending them to API endpoint URLs to prevent broken requests.

Debugging Malformed URLs

Decode percent-encoded URLs to inspect their readable form and identify issues with improperly encoded characters or double-encoding.

Handling Internationalized URLs

Encode non-ASCII characters such as accented letters, CJK characters, or emojis so they can be safely transmitted in URLs.

Form Data Processing

Encode or decode application/x-www-form-urlencoded data when testing or debugging HTML form submissions and POST request bodies.

Pro Tips

  • -Remember that spaces can be encoded as %20 or + depending on context; this tool uses %20 which is correct for URL paths and query values.
  • -Double-encoding is a common mistake. If your output looks like %2520, you have likely encoded an already-encoded string.
  • -Use this tool to debug URLs that contain international characters or emojis that need proper percent-encoding.
  • -When building REST API queries, always encode parameter values individually rather than encoding the entire URL.