Skip to content
Util.Ninja

URL / URI Encoder and Decoder

Percent-encode text so it is safe to use in a URL, query string or API call, or decode an encoded URL back to readable text. Spaces become %20, & becomes %26 and non-English characters are encoded as UTF-8, for example é → %C3%A9.

Text Value

Encode

Encoded (URI) Value

Decode

How to use

  1. Paste your text or URL into Text Value.
  2. Choose whether to keep new lines and the / path separators unencoded.
  3. Press Encode to get the percent-encoded value, or paste an encoded value into Uri Value and press Decode.

Frequently asked questions

What is URL encoding?

URL encoding, also called percent-encoding, replaces characters that are not allowed or have a special meaning in a URL with a % sign followed by two hexadecimal digits. For example a space becomes %20 and & becomes %26.

When do I need to URL-encode text?

Whenever you put user text into a URL: query string values, path segments, redirect URLs, API parameters and links in emails. Without encoding, characters such as &, ?, # and spaces break the URL or change its meaning.

Why does a space sometimes appear as + instead of %20?

HTML forms traditionally encode spaces in query strings as +. In paths and in standard percent-encoding a space is %20. This tool uses %20, which is understood everywhere.

Should I keep the “/” unencoded?

Keep slashes when you are encoding a whole path such as folder/file name.txt, so the folders stay separate. Encode them when the text is a single value, for example a query parameter that contains a slash.

More free tools

QR code generatorLinks, Wi-Fi, contacts, PNG & SVGWord & character counterWords, characters, reading timeImage compressor & resizerShrink and resize JPG, PNG, WebPPassword generatorStrong passwords & passphrasesJSON formatter & validatorBeautify, validate, tree viewBase64 encode / decodeText to Base64 and backJSON minifierMake JSON smallerJS, CSS & HTML minifierShrink code for faster pagesGUID / UUID generatorUnique IDs in one clickWebP converterJPG, PNG, HEIC to WebPWords FinderUnscramble letters, 10 languages

Need a break? Play a free game → Dots, Hen House Dash and Gold Runner, on phone or PC.