ToolPlexa

Free Online URL Encoder

Escape characters in text for safe use in a URL component, such as a query parameter.

Launch mode: all available tools are free • No account required

URL Encoder: A Practical Guide

Use URL Encoder to percent-encode a text value for use as a URI component. The current operation is equivalent to encodeURIComponent. It is intended for a component such as a query value, not for preserving the syntax of an entire already-built URL.

How to Use URL Encoder

  1. Paste the component text.
  2. Select Process.
  3. Inspect the result.
  4. Use it only in the appropriate URL context.

Component Encoding and Decoding

Reserved characters such as ampersand, question mark and slash are encoded so they can be represented as data inside a component. Spaces become %20 in this workflow.

Encoding a whole URL can also encode the separators that make it a URL. Build the address with appropriate URL APIs rather than repeatedly encoding the entire string. Double encoding changes percent signs into %25.

Worked Example

The value red & blue becomes red%20%26%20blue. This can be used as one query-parameter value without the ampersand starting a new parameter.

Check the reverse operation: use the URL Decoder.

Inspect a complete web address: use the URL Parser.

Checks and Common Mistakes

  • Distinguish a component from a whole URL.
  • Avoid accidental double transformations.
  • Do not share tokens from private URLs.
  • Treat decoded text as untrusted.

Frequently Asked Questions

Should I encode the entire URL?

Usually encode the individual value, not all address separators.

Does this make a URL safe?

Encoding does not validate the destination or remove every security risk.

Why do I see %25?

A percent sign may have been encoded, often because already-encoded text was encoded again.

Related Tools for the Next Step

Reference

Further reading: MDN URI component encoding.

Scroll to Top