Free online tool

Encode and decode URL components

Convert text to percent-encoded form for URL components or decode encoded values into readable text. Use the component mode for query values rather than whole URLs.

Quick answer

Quick answer

Percent-encoding makes text safe for URLs: a space becomes %20 and an ampersand becomes %26, so they are not misread as separators. This tool encodes or decodes URL components in your browser, for values such as a search term or UTM campaign name. Encode each value, never the whole URL, or the colon and slashes in https are encoded too.

Open the interactive URL Encoder / Decoder

The interactive tool loads in the page. Enable JavaScript to enter data, process content, and download results.

About this tool

About the URL Encoder / Decoder

Convert text to percent-encoded form for URL components or decode encoded values into readable text. Use the component mode for query values rather than whole URLs.

Detailed guide

How to get useful results from URL Encoder / Decoder

Percent-encode and decode URL components

URLs can only contain a limited set of characters. Spaces, ampersands, question marks, accented letters, and many symbols must be converted into percent-encoded form, such as %20 for a space, when used inside query parameters or path segments. This free online URL encoder and decoder converts text into a safe URL component and decodes percent-encoded values back into readable text. Web developers, SEO specialists, marketers building campaign links with UTM parameters, and support teams analyzing logs worldwide use it to troubleshoot broken links and inspect tracking URLs. Everything runs locally in your browser.

Encode components, not whole URLs

The component mode is designed for individual values, such as a search term, a redirect target, or a UTM campaign name. Encoding an entire URL with component encoding would also encode the colon and slashes in https://, which breaks the address. Build the base URL normally, then encode each parameter value before adding it after the equals sign. This prevents characters like & and = inside a value from being misread as separators. Decoding is helpful when you receive a long encoded link and want to see the actual parameters and destination clearly.

International characters and common pitfalls

Non-ASCII characters, such as letters with accents, Cyrillic, Arabic, Chinese, or Hindi text, are encoded as UTF-8 byte sequences, which is the modern web standard. Double encoding is a common mistake: encoding a value that is already encoded turns %20 into %2520. If a decoded value still contains percent signs, it may have been encoded twice. In form submissions, a plus sign sometimes represents a space, which can differ from strict percent-encoding. Test important links, especially redirect and payment URLs, after encoding to confirm they work as expected.

Marketers frequently use encoding when building campaign links for email newsletters, social media posts, and paid ads. Campaign names with spaces, ampersands, or non-English characters can break tracking if left unencoded. Encoding each value keeps analytics data accurate in tools such as Google Analytics, so you can measure which campaigns perform best.

Quick guide

How to use this tool

  1. 01Choose encode or decode.
  2. 02Enter a URL component or encoded string.
  3. 03Convert and copy the result.

Capabilities

Features and supported formats

  • Supports URL component encoding/decoding.
  • Shows readable output for percent-encoded text.
  • Runs locally in the browser.

Supported formats

Input and output: URL text and percent-encoded components.

Answers

Frequently asked questions

Should I encode an entire URL?

Usually encode individual query parameter values, not the full URL; encoding reserved URL separators can change its meaning.

What does percent-encoding do?

It represents characters using a percent sign followed by hexadecimal bytes so they can be safely included in URL components.

What does %20 mean in a URL?

%20 is the percent-encoded form of a space character. Other characters have similar codes, such as %26 for an ampersand.

Can I encode UTM campaign parameters?

Yes. Encode each parameter value separately, then add it to your URL to keep spaces and special characters from breaking the link.