We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
Was this tool helpful to use?
Your feedback helps us make it better
Convert special characters and spaces into percent-encoded URLs and vice versa to solve character compatibility issues in web development and data transmission.
Overview
Understand what the tool solves, how it works, and the boundaries of its data.
A URL encoder converts text into percent-encoded form: each escaped byte is written as a percent sign followed by two hexadecimal digits. For example, a space becomes %20, and a literal percent sign becomes %25. Decoding reverses valid escape sequences. This is a text representation rule; it does not encrypt, authenticate, validate, or conceal the original value.
The important choice is whether the input is one URI component, such as a search term, or an entire URI whose punctuation carries structure. The mode switch determines which reserved separators remain readable. The result updates from the entered text, and malformed escape sequences or invalid text encodings can produce a decoding error.
| Mode | Use it for | Example behavior |
|---|---|---|
| Component (default) | One parameter value or path segment | tea & coffee becomes tea%20%26%20coffee |
| Complete URI | A whole URI whose separators should remain visible | Colons, slashes, question marks, ampersands, and equals signs are generally kept as URI structure |
Component mode encodes separators that would otherwise be interpreted as part of the surrounding address. Complete-URI mode preserves structural characters while escaping characters that need representation. Both modes leave a defined set of ordinary characters unchanged, so “encode all” does not mean every character becomes a percent triplet.
For non-ASCII text, the UTF-8 bytes are represented separately. The character “é” has UTF-8 bytes C3 A9, so its percent form is %C3%A9. A word or emoji may therefore become several adjacent percent triplets. Hexadecimal letters can appear in either case when reading an existing value.
As a parameter value: price & size → price%20%26%20size
As part of a complete URI: https://example.com/search?q=tea keeps its scheme, path, question mark, and equals sign visible.
Guide
Follow the workflow and verify inputs and outputs with practical examples.
Choose component mode for one value that will be inserted into an address. Choose complete-URI mode when the input is already a whole address and its separators should remain recognizable.
Use encode for plain text that needs percent escapes, or decode for text that already contains escapes such as %20. Pasting a new value refreshes the result.
Check that reserved punctuation was handled at the intended level before copying it into a request, address, or log. Build the surrounding URL with its fixed separators after encoding an individual value.
If decoding fails, look for a percent sign that is not followed by two hexadecimal digits, or for an incomplete byte sequence. A plus sign is not automatically converted to a space by this URI operation; plus-as-space belongs to form serialization conventions.
Use cases
See how the tool fits into real work and everyday tasks.
A developer has a value such as red & blue to place after a query key. Encode just that value in component mode so its ampersand is data instead of a new parameter separator.
A support or QA worker receives a complete redirect URI with readable separators and escaped text. Use complete-URI mode to decode what can be decoded while retaining the URI structure.
Q&A
Find concise answers to common questions and confusing cases.
%20 or +?This tool uses URI handling that represents a space as %20. A plus sign as a space is a separate rule used by form-style URL serialization; it is not applied automatically here.
%26?In component mode, the ampersand is treated as part of the value and escaped so it cannot act like a separator between query parameters. In complete-URI mode, an ampersand can remain as URI punctuation.
Check that every percent sign is followed by exactly two hexadecimal digits and that escaped bytes form valid text. Also confirm that the selected mode matches whether the input is a component or complete URI.
No. Percent escapes are reversible formatting. Anyone who can read the string can decode them; do not treat encoded credentials or personal information as protected.
Notes
Review scope, result limitations, and important precautions before use.
Encoding does not verify that a URL exists, that its destination is safe, or that its parameters have the intended meaning.
%25. Repeating encoding can produce a different representation, so encode only the intended layer.Related
Discover related tools, collections, and available API capabilities.