URL Component Encoder
Encode text for one query parameter value or path segment.
Result
How to use URL Component Encoder
- Paste your source text in the input box.
- Select Convert to generate the output.
- Review the output before copying it.
How it works
Encode text for one query parameter value or path segment. Encode a single component using UTF-8 percent escapes.
Formula or processing rules
Encode a single component using UTF-8 percent escapes.
Worked example
The component coffee & tea encodes spaces and the ampersand so they cannot split the parameter.
| Measure | Value |
|---|---|
| Source text | coffee & tea |
| Result | coffee%20%26%20tea |
Pros and cons
Pros
Encode text for one query parameter value or path segment. The sample provides an immediate check of the expected output.
Cons
Encoding a full URL changes its separators. Pass only the component you want encoded.
Troubleshooting
Check the input format and compare your case with the built-in sample. Encoding a full URL changes its separators. Pass only the component you want encoded.
Frequently asked questions
How do I use the text I get back?
Copy the output into the document, list, or compatible tool where you need it.
How does the transformation work?
Encode a single component using UTF-8 percent escapes.
Can I try a sample first?
The component coffee & tea encodes spaces and the ampersand so they cannot split the parameter.
What should I check before using the result?
Encoding a full URL changes its separators. Pass only the component you want encoded.
Is my input stored by the tool?
The transformation is computed in the open page. The tool does not save the submitted text.