URL Encode Space

Encode a URL space as %20 or +, escape a component value, preserve a complete URI, or decode percent-encoded text.

Written and checked by TheToolNet Editorial Team · Last reviewed: October 11, 2026 · Editorial method

Quick answer

Use %20 for a normal URI space. Use + only when encoding form-style query data.

URL encoder and decoder

Why URL spaces have two forms

General percent encoding represents a space byte as %20. HTML form encoding uses + for a space and percent-encodes a literal plus. Mixing the conventions is a common source of broken query values.

Complete URL versus one component

A full URL contains structural characters such as :, /, ?, &, and =. Complete-URI mode preserves those separators. Component mode escapes them so an untrusted value cannot become URL structure. See MDN's encodeURIComponent() reference.

Frequently asked questions

What are URL escaped characters?

They are bytes represented as a percent sign followed by two hexadecimal digits, such as %26 for an ampersand.

Does Base64 encode a URL?

No. Base64 and percent encoding solve different problems. Use Base64 only when the receiving format explicitly requires it.