How to URL Encode and Decode Text Online

URLs can only contain certain characters. Special characters like spaces, ampersands, and symbols must be encoded to work properly in web addresses, query parameters, and API requests. URL encoding converts these characters to percent-encoded format (%20 for space, %26 for &). This guide shows you how to URL encode and decode text using fixie.tools — a free tool with instant browser-based conversion.

Step 1: Open the URL Encoder Tool

Go to fixie.tools/url-encode in your browser. The tool performs all encoding and decoding locally in your browser with no server uploads, ensuring privacy and instant results.

Step 2: Select Encode or Decode

Choose whether you want to encode plain text to URL-safe format or decode URL-encoded text back to readable form. Encoding converts characters like spaces to %20 and & to %26. Decoding reverses this process, turning %20 back into spaces and making URLs human-readable.

Step 3: Enter Your Text or URL

For encoding, paste text you want to use in a URL, such as search queries, form data, or API parameters. For decoding, paste a URL-encoded string that contains percent signs and hex codes like %20, %3D, or %26. The tool handles both full URLs and individual query parameters.

Step 4: View Encoded/Decoded Result

The converted result appears instantly as you type. For encoding, you'll see all special characters converted to percent-encoded format (%XX where XX is the hexadecimal ASCII code). Spaces become %20, exclamation marks become %21, quotes become %22, and so on. For decoding, percent codes are converted back to their original characters making the URL readable again.

Step 5: Copy and Use in Your URLs

Click Copy to copy the encoded or decoded text to your clipboard. Use URL-encoded text in query strings, form submissions, API calls, or anywhere special characters need to appear in URLs. Properly encoded URLs prevent errors when characters like &, =, or ? appear in parameter values rather than as URL syntax.

Frequently Asked Questions

Why do URLs need encoding?
URLs can only safely contain letters, numbers, and a few special characters like hyphen and underscore. Other characters — especially spaces, ampersands, equals signs, question marks, and non-ASCII characters — have special meaning in URL syntax or aren't allowed. URL encoding converts these to %XX format so they can safely appear in URLs without breaking the syntax.
What's the difference between URL encoding and HTML encoding?
URL encoding uses percent signs (%) followed by hex codes (%20 for space) and is used specifically for URLs. HTML encoding uses ampersand syntax (  for space) and is used for displaying special characters in HTML content. They serve different purposes and use different encoding schemes.
Should I encode the entire URL?
No, only encode the parts that contain special characters, typically query parameter values. Don't encode the protocol (https://), domain (example.com), path slashes (/), or URL syntax characters (? and &) that separate parameters. Only encode the actual data values within parameters.
Is the URL encoder free?
Yes, Fixie's URL Encoder/Decoder is completely free with no signup requirements, no usage limits, and no ads. All encoding happens instantly in your browser with complete privacy.
Can I encode international characters?
Yes, the tool properly encodes all Unicode characters including accented letters, Chinese characters, emoji, and any non-ASCII text. International characters are converted to UTF-8 bytes, then each byte is percent-encoded (e.g., é becomes %C3%A9).

Related Tools