Data Productivity ⏱️ 3 min read • Nov 16, 2026 • 3 views

URL Encoding for Query Parameters, Spaces & Unicode

Encode or decode URL components and form values, including spaces, reserved characters, and Unicode text.

Advertisement

Encode one value at a time

A query string uses & to separate parameters and = to separate names from values. Encode those characters when they are part of the value. For example, enter tea & coffee, select Encode component, and append tea%20%26%20coffee after ?q=.

Choose between percent encoding and form encoding

In component mode, a space becomes %20. Form mode follows the application/x-www-form-urlencoded rules and represents that space with +. A literal plus becomes %2B. Choose form decoding only when the source uses that form format. See the WHATWG URL Standard.

Avoid double encoding

Encoding %20 again yields %2520 because the percent sign is part of the input. If your framework already serializes query parameters, pass the original text to it. Use the decoder to inspect a value that is already encoded.

Fix malformed escape sequences

Each percent escape needs two hexadecimal digits. Unicode characters often require several consecutive UTF-8 bytes. An incomplete escape like %E2%82 will trigger an error. Check the original value and encode it again before building your URL.

Open the URL Encoder & Decoder to try the workflow in your browser.

Advertisement
⚡

Ready to Format Data Faster?

Experience instant, 100% private in-browser delimiter tools, SQL conversions, and file converters with zero server uploads.

Comma Separator Tool → Explore All Tools

Related Guides & Tutorials

Data Productivity

How to Remove Duplicate CSV Rows by Key Columns

Read →
Data Productivity

Mastering Case Conventions: The Complete Developer Guide to camelCase, snake_case & PascalCase

Read →
Data Productivity

Unlock the Power of Data Organization

Read →