Processing runs on your device in your browser. Review the output before using it.
URL Encoder / Decoder
Encode URL text.
What this tool does
Encode a single URL component or decode an escaped component into readable text. This helps when placing a search phrase, filename or user-entered value into a query parameter without allowing special characters to change the surrounding URL structure.
How to use URL Encoder / Decoder
Choose Encode or Decode, paste the component and choose Run tool. Copy only the result you need into the destination field. If you are building a complete address, keep the scheme, host, slashes and parameter separators outside this operation.
Example and interpretation
A space in a component becomes %20, and an ampersand becomes %26. Encoding blue & green makes it suitable as one parameter value rather than allowing the ampersand to start another parameter unexpectedly.
Limits and practical tips
This uses encodeURIComponent and decodeURIComponent, not whole-URL normalisation. A plus sign is not automatically decoded as a form-encoded space. Decoding malformed percent escapes produces an error. Repeated encoding adds extra escaping, so establish whether a value is already encoded first.
Using the result in a project
Start with a small, non-sensitive example and compare the result with the format expected by the receiving application. A successful transformation shows that this operation ran; it does not prove that the result is valid for every API, database field or application rule. Check the destination documentation before using generated data in a live workflow.
Before you finish
The inputs are handled by browser JavaScript for this tool. Do not paste production credentials, customer records or private configuration merely to test a format. Keep a reproducible sample with harmless values instead. If an error appears, reduce the sample until the problematic portion is clear, then correct the source and run the operation again. When copying the output, include the complete value and avoid adding surrounding quotation marks unless the destination specifically requires them. A copied newline or omitted closing character can change how another application reads an otherwise correct result.
Explore all tools, read our privacy information or report a problem.
Questions and answers
Should I encode an entire website address here?
Normally encode one component, such as a query parameter value. Encoding an entire address also escapes structural characters that the surrounding URL needs.
Why does a plus sign remain after decoding?
The tool uses decodeURIComponent. That operation does not automatically interpret a plus sign as a space in form-encoded data.
Why does decoding show an error?
Malformed percent escapes or invalid encoded byte sequences can fail decoding. Check that the source value is complete and that you selected the correct direction.
