URL Encode

URL Encode

Percent-encode text for use in URLs. Type or paste below — the result updates as you type.

Free
No signup
Instant
Private
Input
0 words • 0 characters • 0 without spaces • 0 lines
Convert to
Output
0 words • 0 characters • 0 without spaces • 0 lines

Private by design

This conversion runs entirely in your browser. Your text is not sent to a server.

Tip

Encode query values, not the whole URL, unless you need every reserved character escaped. Spaces become %20.

How to convert with URL Encode

  1. Paste or type text in the input box.

  2. Watch the encoded or decoded result update instantly — nothing is uploaded.

  3. Use Convert to to switch between Encode and Decode. Your input is kept.

  4. Copy the result, or use it as the next input.

When should you use it?

  • Query strings

    Escape spaces and symbols so search params stay valid in a URL.

  • Forms

    Prepare field values before they go into an href or redirect.

  • APIs

    Encode path segments and keys that browsers would otherwise treat as reserved.

  • Round-trip

    Decode a copied URL fragment back to the original text, then encode again to check it.

Your text stays private.

URL encoding and decoding run entirely in your browser. Query strings and paths are never uploaded.

Learn more about privacy →

About percent-encoding URLs in the browser

URL Encode / Decode percent-encodes reserved characters so a value can sit in a query string or path. Spaces become %20. Encode the value, not always the entire URL, unless you intend to escape slashes and colons too. Decode reverses a copied fragment back to readable text. Unicode is UTF-8 then percent-encoded.

Worked example: hello world encodes to hello%20world. A query value a+b=c needs encoding before it is appended to ?q=. Round-trip encode then decode should match the original for typical Unicode.

This is not a URL parser (use URL Parser to split host, path, and query). It is not Base64. Related: Base64 Encode, HTML Encode, Slugify. Nothing is uploaded. Convert to keeps input while you switch encode and decode.

Related encoding tools

URL Encode examples

Spaces

Input
hello world
Output
hello%20world

Query value

Input
q=json formatter
Output
q%3Djson%20formatter

Unicode and symbols

Input
café & tea
Output
caf%C3%A9%20%26%20tea

Encode vs decode

ActionExampleTypical use
Encodehello%20worldQuery parameters, form values, and API path segments
Decodehello worldRestore readable text from a percent-encoded string

URL Encode FAQ

Encode query parameters and values that contain spaces, symbols, or non-ASCII characters so URLs remain valid.

No. URL encoding percent-encodes characters for URLs. Base64 is a different encoding used for binary-safe ASCII transport.