Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Converters & Encoders
  3. URL Encoder/Decoder
Add to favorites

URL Encoder/Decoder

Percent-encode and decode URLs as you type in four character sets, build query strings, and take any URL apart parameter by parameter.

Runs locally in your browserMore converters & encodersJump to full guide
Related readingURL Encoding Guide: Understanding Percent-Encoding for the Web8 min

Initializing in your browser…

You might also like

Base64 Encoder/Decoder

Encode and decode text, files and JSON as base64, base64url or hex as you type, with a check that every result decodes back exactly.

JWT Decoder

Decode a JSON Web Token instantly, check its expiry and claims, and verify the signature with a secret, PEM key or JWKS, all in your browser.

Unix Timestamp Converter

Convert Unix timestamps to dates and dates to timestamps in any time zone, with seconds, milliseconds, microseconds and nanoseconds detected automatically.

An example conversion

You are adding a promotional message as a query parameter, and the server that checks the request signature says it follows RFC 3986.

Text to encode

it's (50% off) ~ now!
What URL Encoder/Decoder produces

The same 21 bytes in each percent set

Component   it's%20(50%25%20off)%20~%20now!      5 escaped
RFC 3986    it%27s%20%2850%25%20off%29%20~%20now%21   9 escaped
Full URI    it's%20(50%25%20off)%20~%20now!      5 escaped
Form data   it%27s+%2850%25+off%29+%7E+now%21     10 escaped

The four sets agree on letters, digits and the percent sign, which always becomes %25, and disagree on everything else in this text. Component (encodeURIComponent) and Full URI leave the apostrophe, both brackets and the exclamation mark alone, so they escape only the four spaces and the percent sign. RFC 3986 escapes those four characters too, which is why a signature built with encodeURIComponent will not match a server that follows the RFC. Form data writes each space as a plus sign and also escapes the tilde, which every other set keeps. Whichever set you pick, the tool decodes the result again and confirms it gives back the original 21 bytes.

What this converter does

Percent-encoding is how a URL carries characters it cannot hold directly: each byte becomes a percent sign and two hex digits, so a space turns into %20 and é into %C3%A9. This tool encodes and decodes as you type in the four character sets that matter in practice, shows the same text in all of them side by side, builds query strings, and takes an existing URL apart value by value.

How it works

A URL may only contain a limited set of ASCII characters, and some of those have jobs: a question mark starts the query, an ampersand separates parameters, a hash starts the fragment. Any other character, and any of those used as ordinary data, has to be written as %XX, where XX is the hex of one UTF-8 byte. Text in other scripts is encoded byte by byte, so the Japanese character 世 becomes %E4%B8%96 and an emoji becomes four escapes.

The hard part is choosing which characters to escape, because there is no single answer. RFC 3986 keeps only letters, digits and the four characters - . _ ~ and escapes everything else. JavaScript encodeURIComponent also leaves ! ' ( ) and * alone. encodeURI goes further and keeps the structural characters such as / ? & = and #, which is right for a whole URL and wrong for a single value. HTML forms and URLSearchParams use a fourth set in which a space becomes a plus sign and the tilde is escaped. The tool offers all four plus base64url, and in Encode mode it lists the result in every percent set at once so you can see exactly where they differ for your text.

Decoding never gives up on the first bad escape. A % followed by something that is not two hex digits, or a % at the very end, is reported with its position, and the rest of the input is still decoded. If the escapes describe bytes that are not valid UTF-8, the tool says so and shows the bytes in hex, rather than quietly showing replacement characters. Whether a plus sign means a space depends on who is reading: a server reading form data says yes, a path reader says no, so there is a switch for it.

The Builder assembles a query string from name and value pairs, encodes each value with the set you choose, keeps any parameters and fragment already on the base URL in the right place, and then parses the finished URL back to confirm a server would read exactly the values you typed. Batch encodes a list, one value per line, with a copy-all button and a tab-separated download. Analyze splits a URL into scheme, host, port, path segments, parameters and fragment, decodes each value exactly once, shows the raw text beside it, and points out things worth knowing, such as plain http, credentials in the URL, a malformed escape, a double-encoded %25 sequence, or a length over 2,000 bytes.

Everything runs in your browser. The text you convert is kept out of the address bar and out of share links, which carry only the mode and the character set.

How to use

  1. 1Pick Encode or Decode at the top, then the character set. Component is the right choice for a single query value.
  2. 2Type or paste into the input. The result updates as you type; Try an example fills in a sample.
  3. 3Press Copy to take the result. In Encode mode, the panel below shows the same text in every percent set.
  4. 4When decoding form data or a query string, turn on Read + as a space, or choose Form data.
  5. 5Use Builder to assemble a URL from parameters, Batch to encode a list one value per line, and Analyze to inspect a URL you already have.

Key features

  • Live encoding and decoding with no button to press
  • Four percent-encoding sets (Component, RFC 3986, Full URI, Form data) plus base64url
  • The same input shown in all four percent sets, each with its own copy button
  • Every encoded result decoded again and checked against your input
  • Malformed escapes reported individually with their position, and decoding carries on around them
  • Decoded bytes shown in hex, with a warning when they are not valid UTF-8
  • A query string builder that keeps existing parameters and the fragment in place and confirms what a server will read
  • Batch encoding with copy-all and a tab-separated download
  • URL analysis with every parameter, path segment and fragment decoded once, raw text alongside
  • A table of what the chosen set does to each special character

Tips & best practices

  • If a value contains a URL of its own, encode it with Component, not Full URI, so its ? and & do not leak into the outer URL.
  • Escapes are case-insensitive: %2f and %2F mean the same byte. This tool always writes uppercase, as RFC 3986 recommends.
  • Most browsers and servers cope with URLs up to about 2,000 bytes. Analyze warns you when a URL is longer than that.
  • Use the swap button to send a result straight back through the opposite direction and confirm nothing changed.

Where this fits

  • Getting a request signature to match

    OAuth 1.0a and AWS Signature Version 4 require RFC 3986 encoding. encodeURIComponent leaves ! ' ( ) * unescaped, so a value containing one of them signs differently from what the server computes. The RFC 3986 set produces the form those specifications expect.

  • Putting a URL inside another URL

    A redirect_uri or a tracking link carried as a parameter must have its own ? & = and # escaped, or the outer URL breaks apart. Encode it with Component, or build the whole thing in Builder and let the parse-back check confirm it.

  • Reading a URL from a log file

    Paste it into Analyze to see each parameter as the server reads it, the text as it was written, and any escape that is broken or encoded twice.

  • Tagging campaign links

    Build UTM links with readable campaign names that contain spaces and ampersands, and copy a URL that every analytics tool will read the same way.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI leaves the structural characters ; / ? : @ & = + $ , and # alone, so it suits a complete URL whose structure is already correct. encodeURIComponent escapes them, so it suits a single value going into a URL. Using encodeURI on a value that contains & or = splits it into extra parameters.

Why does RFC 3986 give a different result from encodeURIComponent?

They differ on five characters: ! ' ( ) and *. RFC 3986 treats them as reserved and escapes them; encodeURIComponent leaves them as they are. For most query values either works, but anything that signs a canonical URL needs the RFC 3986 form.

Why are spaces sometimes + and sometimes %20?

HTML forms send data as application/x-www-form-urlencoded, which writes a space as a plus sign. Everywhere else in a URL a space is %20. A server reading a query string usually accepts both, but a plus in a path stays a plus, which is why the decoder lets you choose.

Should I encode a whole URL or only the parameter values?

Only the values, in almost every case. Encode each name and value on its own and then join them with = and &. The Builder does exactly that. Full URI exists for the rare case of a complete URL that only needs its stray spaces and non-ASCII characters escaped.

What does %2520 mean?

It is a value that was encoded twice. %25 is the escape for the percent sign, so %2520 decodes once to %20 and a second time to a space. Analyze flags this pattern, because it usually means some step in a pipeline encoded text that was already encoded.

What happens to characters that are not valid UTF-8?

Decoding still produces the bytes and shows them in hex, and a warning explains that the text version contains replacement characters and would not re-encode to the same bytes.

Is anything I type sent anywhere?

No. Everything runs in your browser. The text you convert is not written into the address bar or into share links, so it does not end up in your history or in a link you send to someone.

Further reading

  • URL Encoding Guide: Understanding Percent-Encoding for the Web8 min read

Private by design

Conversions run on your device in JavaScript. The values you enter are never sent over the network.