How to use this tool
- Enter text or encoded component, mode.
- Select Update result to view the result.
- Check the method and assumptions below before using the result.
The method, explained
Encoding uses encodeURIComponent to escape a component. Decoding uses decodeURIComponent to interpret percent-encoded bytes as text.
The component “hello world” encodes as “hello%20world”. The ampersand encodes as %26.
What to keep in mind
This encodes a component, not an entire URL while preserving its separators. Plus signs are not automatically converted to spaces during decoding.
Common questions
Can I paste a complete URL?
You can, but component encoding will also escape its slashes and separators. That is useful only when embedding the whole URL as a value.
Does encoding encrypt the text?
No. Anyone can reverse percent encoding; it provides no secrecy.
Methodology maintained by ClarityKit. How these tools are built and checked.