URL encode and decode online

Use this URL encode tool to turn spaces, symbols and accented letters into safe percent-encoded text, or decode %20-style strings back to readable form. Choose component or full URL encoding and get the result as you type.

  • Free
  • No sign-up
  • Runs in your browser

Runs in your browser — your text is never sent to our servers.

How to use URL Encode/Decode

  1. Pick Encode or Decode at the top of the tool.
  2. For URL encode, choose component mode (encodes every reserved character) or full URL mode (keeps characters such as : / and ?).
  3. Paste your text or link in the box. The result appears as you type.
  4. Copy the result and use it in your link, query string or API call.

Features

  • Component encoding that follows the encodeURIComponent rules
  • Full URL encoding that leaves the URL structure (:, /, ?,
  • Decoding of %XX sequences, with "+" treated as a space
  • UTF-8 aware, so accented letters and emoji are encoded as several bytes
  • Clear error for malformed percent sequences
  • Handles up to about 10 million characters
  • Live result, no button to press
  • No daily limit

Supported formats and limits

  • Maximum input: 10,000,000 characters

Examples

InputResult
hello world & moreComponent encode - hello%20world%20%26%20more
caféComponent encode - caf%C3%A9 — The letter is two bytes in UTF-8, so it has two % groups.
https://example.com/my file.pdfFull URL encode - https://example.com/my%20file.pdf
a/b?c=1Component encode - a%2Fb%3Fc%3D1
a+b%20cDecode - a b c — The + becomes a space and %20 becomes a space.

Limitations

  • Decoding fails with an error if a "%" is not followed by two valid hexadecimal digits.
  • Full URL mode leaves reserved characters such as ":", "/" and "?" untouched, because they have a structural meaning. Use component mode to encode every character.
  • Double-encoding is possible. Encoding an already encoded string turns each % into %25.
  • Text is limited to about 10 million characters.

Learn more

A URL can only contain a limited set of ASCII characters. Anything else, such as spaces, non-English letters or characters with special meaning, must be written as percent-encoding: a percent sign followed by the byte value in hexadecimal. The rules are defined in RFC 3986. A space becomes %20, an ampersand %26, and the letter e with an acute accent becomes %C3%A9 because it takes two bytes in UTF-8.

Some characters are reserved because they structure the URL: the colon and slashes separate scheme, host and path, the question mark starts the query, the ampersand separates parameters and the hash starts the fragment. When one of those characters is part of a value, for example a search term containing an ampersand, it must be encoded, otherwise the receiving server reads it as structure. That is the job of component encoding.

When you already have a whole link that only contains a space or accent, full URL encoding is safer, since it keeps the structure intact. Avoid encoding twice: a correctly encoded string should be encoded once, before it is placed in the link, and decoded once on the way back.

Frequently asked questions

How do I URL encode a string?

Choose Encode, select component mode and paste the string. Spaces become %20 and symbols such as & and ? become percent codes.

What is the difference between component and full URL encoding?

Component mode encodes everything that is reserved, so it suits a single query value. Full URL mode keeps the structure of a complete link and encodes only unsafe characters like spaces.

How do I decode %20 and other percent codes?

Choose Decode and paste the string. Each %XX is turned back into its character, and a plus sign becomes a space.

Why does my decoded text show an error?

A percent sign must be followed by two hexadecimal digits, such as %2F. A stray % or a cut-off code causes the error.

Why is a space sometimes %20 and sometimes +?

Both appear in practice. %20 is valid everywhere in a URL, while + means a space only in form-style query strings.

Are my links sent to a server?

No. Encoding and decoding happen in your browser, so URLs with tokens or private parameters stay on your device.

Sources

Last reviewed: September 29, 2026