URL Component Encoder

Encode text for one query parameter value or path segment.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use URL Component Encoder

  1. Paste your source text in the input box.
  2. Select Convert to generate the output.
  3. 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.

Example text lengths in UTF-16 code units
Input · 12
Output · 18
Worked example
MeasureValue
Source textcoffee & tea
Resultcoffee%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.