URL Encoder / Decoder

Convert UTF-8 text using Component, Full URI or Form value rules. Compare %20 and +, handle malformed escapes, and copy or download results locally.

URL Encoder / Decoder

Choose Component, Full URI, or one Form value. Convert text locally.

Encoded

One component value: spaces use %20 and literal + uses %2B. Decoding keeps a raw + as a plus. This uses encodeURIComponent / decodeURIComponent.

Input limit: 256 KiB of UTF-8 text. Conversion does not check URL safety or reachability.

Encoded output

hello%20world%20%26%20everyone
Steps

How to use

  1. Choose Encode or Decode and select Component, Full URI, or Form value.
  2. Paste one value or whole URI text appropriate to that style.
  3. Review the result and any error, then Copy or Download. Swap changes the mode; Reset clears the input.
Examples and use cases
  • Component: summer sale & clearance+ → summer%20sale%20%26%20clearance%2B.
  • Form value: summer+sale%2B → summer sale+ on decode.
  • Full URI decoding keeps %2F and %26 escaped while decoding %20.
Privacy, limits and tool details

Key facts

Input
Unicode text or percent-encoded UTF-8 text; 256 KiB input limit
Styles
Component, Full URI, and one Form value
Spaces and plus
Component uses %20; Form value uses + for spaces and %2B for a literal plus
Output
Text to copy, swap, or download as a UTF-8 .txt file
Processing
Local browser memory; no input upload or persistent input storage
Main limitation
Transforms text; does not parse query fields or certify a URL
Privacy

Privacy and processing

Processing method: Runs locally using encodeURIComponent/decodeURIComponent, encodeURI/decodeURI, or explicit UTF-8 form value rules.

Privacy model: Input and output stay in component memory, are not uploaded or saved to browser storage, and are marked for Clarity masking. Converter analytics contain action, mode, style or preset identifiers rather than input text. Copy, Download and Share require explicit actions.

Limitations

Limitations

  • Form value processes one name or value, not a full query string. Malformed escapes, invalid escaped UTF-8 and unpaired Unicode surrogates are rejected. Full URI preserves reserved escapes on decode and is not a URL parser.
Features

Benefits

Explicit conventions

Select the character rules that fit the value you are inspecting.

Visible conversion errors

Invalid input clears the result and disables exports instead of returning partial text.

Tips

Pro tips

  • Use raw values with URLSearchParams rather than pre-encoding them.
  • Choose Form value only for the form convention; Component does not decode raw + to a space.
  • Encode once for each intended protocol layer. Existing %20 becomes %2520 if encoded again.
Watch out

Common mistakes to avoid

  • Treating Full URI as a query-value encoder: it preserves & and = delimiters.
  • Pasting a complete query string into Form value and expecting separate fields.
  • Treating conversion success as URL validation, security approval, or encryption.
Detailed URL Encoder / Decoder guide

Choose what you are encoding

URL percent-encoding represents a byte with a percent sign and two hexadecimal digits. A space commonly becomes %20; the UTF-8 bytes for é become %C3%A9. The correct treatment of symbols depends on whether they are data inside a value or delimiters that separate parts of a URI.

ToolMint offers three styles. Choose the style before converting, because the same input can produce different results. This tool transforms text; it does not check that an address exists, has an allowed scheme, or is safe to open.

Style Encode Decode Use it for
Component encodeURIComponent: space → %20, plus → %2B, slash → %2F decodeURIComponent: escaped delimiters become literal characters; raw + stays + One path segment, query name, query value, or another component value
Full URI encodeURI: preserves URI delimiters such as /, ?, &, = and # decodeURI: keeps escapes for reserved URI delimiters, including %2F, %26 and %3F Whole URI text whose delimiters already have their intended roles
Form value UTF-8 form-style encoding: space → +, literal plus → %2B Raw + becomes a space before percent decoding One name or value in application/x-www-form-urlencoded data

Form value is not a query-string parser. To inspect a complete q=value&tag=value string, use the URL Query Parser. It separates ordered parameter rows, retains repeated keys and lets you edit and rebuild the query. Use Form value here when converting one name or value. For campaign links, use the UTM Builder. To build query parameters in JavaScript, pass raw values to URLSearchParams instead of encoding them first.

Encode a query value or path segment

For the raw value summer sale & clearance+, Component produces summer%20sale%20%26%20clearance%2B. The ampersand and plus are part of the value, rather than separators between parameters.

For one path segment, reports/2026 becomes reports%2F2026. Whether a server accepts an encoded slash depends on its routing rules. Do not encode all slashes in a complete path if they should separate different segments.

Component matches JavaScript's encodeURIComponent. It leaves ASCII letters, digits and - _ . ! ~ * ' ( ) unchanged. It is not a strict RFC 3986 encoder that escapes every character outside the unreserved set, and it is not an encoder for HTML attributes or response headers. Use the receiving format's rules when additional escaping is required.

Convert whole URI text carefully

Full URI encodes the space in https://example.com/hello world?tag=New York while retaining the scheme, slashes, question mark and equals sign. Its result is https://example.com/hello%20world?tag=New%20York.

This style assumes the delimiters already describe the intended structure. If an ampersand is data inside a query value, Full URI leaves it as an ampersand and it may be interpreted as a parameter separator. Build the URL from separate components instead.

Full URI also encodes an existing percent sign: encoding %20 produces %2520. It does not detect or preserve an already encoded value. It does not perform browser URL parsing, hostname conversion, canonical cleanup or scheme validation. Use the Canonical URL Generator for its separate cleanup workflow.

When decoding, Full URI keeps escapes for ; / ? : @ & = + $ , #. For example, https://example.com/a%2Fb?q=x%26y%20z becomes https://example.com/a%2Fb?q=x%26y z. The space is decoded; the encoded slash and ampersand stay escaped. The result is an inspection string, not necessarily an address you should open unchanged.

Understand plus signs and form values

Component decoding of summer+sale%2B produces summer+sale+. Form value decoding produces summer sale+. A raw plus represents a space only in the form convention; %2B represents a literal plus in both styles.

Form value encoding follows the UTF-8 form serializer's character rules. ASCII letters, digits and * - . _ remain unchanged; ~, !, apostrophes and parentheses are escaped. Whitespace is not trimmed. A tab becomes %09, a line feed becomes %0A, and a space becomes +.

Its decoder deliberately rejects malformed percent escapes and invalid UTF-8 instead of applying the forgiving replacement behavior of URLSearchParams. It performs one decoding pass. Do not repeatedly decode until all percent signs disappear: a remaining escape can be intended data.

Unicode, errors and the input limit

Accented text, Arabic, Chinese and emoji are converted through UTF-8. Valid Unicode is preserved without normalization. The tool rejects unpaired UTF-16 surrogates rather than silently replacing them. In a browser textarea, native editing can normalize CRLF line endings to LF before conversion.

Decode requires each percent sign to start a complete hexadecimal %HH pair, and escaped bytes must represent valid UTF-8. Inputs such as %, %2, %GG, %FF, or a truncated multibyte sequence show an error. There is no partial result, and Copy, Download and Swap are disabled until the input is corrected.

The input limit is 256 KiB (262,144 UTF-8 bytes) in either mode, counted before conversion. Encoded output can be larger than the original text. Swapping that output back into the input applies the same limit and can therefore show a size error for a large result. This is a text converter, not a binary-file decoder. Use Base64 Encoder / Decoder for its byte and file workflow, and see URL Encoding vs Base64 to compare the formats.

Copy, Download, Swap and Reset

Copy places the current non-empty result on your clipboard. Download saves that same result as UTF-8 text: url-encoded.txt in Encode mode or url-decoded.txt in Decode mode. It does not download a remote page or follow a pasted link.

Swap places the result in the editor and switches Encode to Decode or Decode to Encode, retaining the selected style. It is a convenience, not a guarantee of an identical round trip: Full URI decoding preserves reserved escapes, and later encoding escapes their percent signs. Reset clears the input and restores Encode with Component selected. Example buttons replace the input, mode and style with their stated sample.

Local processing and limitations

Conversion runs in browser memory. The converter does not fetch pasted URLs, upload the input, or save input and output to browser storage. Its input and result regions are marked for Clarity masking, and its own analytics events contain action, mode, style or preset identifiers rather than entered text. Ordinary site analytics remain subject to the site's consent settings.

Share shares the tool page URL, not the converted text. Copy and Download create copies outside the editor; clearing the editor does not remove a clipboard entry or a saved file.

Percent-encoding is reversible and provides no encryption, signature verification, malware detection or access control. An Encoded or Decoded status means conversion succeeded under the selected rules; it does not certify a URL as safe or reachable.

Sources

Frequently asked questions

Choose Component for one query name, query value, path segment or other component value. Full URI preserves delimiters whose roles must already be correct; it does not build or validate a URL. Form value handles one name or value using the form convention.

Component and Full URI do not treat a raw + as a space. Form value converts raw + to a space before percent decoding. An escaped %2B becomes a literal plus in Component and Form value, but Full URI keeps that reserved escape.

Component matches encodeURIComponent and leaves ! ~ * ' ( ) unchanged, alongside letters, digits, hyphen, underscore and period. Formats requiring stricter escaping need their own character rules.

Full URI uses decodeURI, which preserves escapes for reserved URI delimiters. Component decoding turns those escapes into literal characters. Choose according to whether the characters describe structure or data.

Each percent sign must start a complete hexadecimal %HH escape, and escaped bytes must represent valid UTF-8. Invalid input returns no partial result. Form value also uses strict decoding instead of URLSearchParams replacement behavior. Unpaired Unicode surrogates are rejected in either mode.

No. Form value transforms one name or value and does not split key=value pairs, handle duplicate keys or build a URL. Use URLSearchParams for query fields or the UTM Builder for campaign links.

Swap puts the result into the editor and changes Encode/Decode while retaining the style. Reset clears input and restores Encode with Component selected. Download saves the result as UTF-8 text. Both modes limit input to 256 KiB, so swapping a larger encoded result can exceed the limit; Full URI round trips can also change existing escapes.

Conversion runs in browser memory without uploading or persistently storing the input. Converter analytics omit entered text, and input/output regions are marked for masking. Copy and Download create external copies; Share shares the page URL. Percent-encoding is reversible and does not encrypt text or prove a URL is safe.
6 min read