URL Encoder / Decoder
Percent-encode or decode text in the browser with encodeURIComponent / decodeURIComponent—not whole-URL encoding, and encode does not use + for spaces.
Result
Tips
Encode values, not whole URLs
Encode parameter values or fragments. Encoding https:// or the host breaks the link.
Spaces on encode
encodeURIComponent turns spaces into %20. This tool does not encode spaces as + (application/x-www-form-urlencoded).
Plus on decode
Before decodeURIComponent, + is mapped to a space so common query-string forms decode as expected.
Client-side only
Conversion runs in your browser; there is no URL-encoder API call for this page.
encodeURIComponent
Encode mode uses the browser's encodeURIComponent on the pasted string.
decodeURIComponent with + → space
Decode mode maps + to space, then applies decodeURIComponent.
No whole-URL mode
There is no special whole-URL encoder; paste the text or value you need encoded or decoded.
What this tool does
URL Encoder / Decoder percent-encodes pasted text with encodeURIComponent, or decodes percent-encoded text with decodeURIComponent after mapping + to space.
It is a client-side text converter for values and fragments—not a whole-URL encoder and not form-urlencoded (+ for space) on encode.
How to use
Choose Encode or Decode
Select Encode for plain text, or Decode for a percent-encoded string.
Paste your text
Enter the value or fragment you want to convert—not necessarily a full URL.
Run and copy
Convert, then copy the result for a query parameter, link, or API request.
Supported inputs and output
Input: pasted text. Encode output: percent-encoded string via encodeURIComponent (spaces as %20). Decode output: plain text after +→space and decodeURIComponent.
There is no file upload and no dedicated whole-URL encoding mode.
Processing and privacy
All conversion runs in your browser using built-in JavaScript encodeURIComponent and decodeURIComponent.
Your text is not sent to Toolomix for encoding or decoding—there is no url-encoder API endpoint for this page.
Limitations
Known limits
- Not a whole-URL encoder (do not encode scheme/host as if they were a single opaque string)
- Encode does not use application/x-www-form-urlencoded (+ for spaces)
- Decode maps + to space before decodeURIComponent
- Invalid percent sequences can fail decode
- Text input only—no file upload
Troubleshooting
If decode fails, check for incomplete %XX sequences or truncated strings.
If a link breaks after encode, you may have encoded more than a parameter value—encode only the parts that need percent-encoding.
Frequently Asked Questions
Does this upload my text?
No. Encoding and decoding run in your browser with encodeURIComponent / decodeURIComponent. There is no upload API for this tool.
Should I encode an entire URL?
No. Encode only the parts that need it (for example query parameter values). Encoding the scheme or domain breaks the link. This tool is not a whole-URL encoder.
Does encode use + for spaces?
No. Encode uses encodeURIComponent, which represents spaces as %20—not application/x-www-form-urlencoded (+ for space).
Why does decode treat + as a space?
Decode maps + to a space before decodeURIComponent so query strings that use + for spaces decode to readable text.
What is percent-encoding?
Characters that are unsafe in a URL are represented as % followed by two hexadecimal digits—for example %20 for a space.
Can it handle non-ASCII text?
Yes. Unicode is percent-encoded using UTF-8 via the browser encodeURIComponent / decodeURIComponent behavior.
Why did decode fail?
Invalid percent sequences (for example a lone % or bad hex) can cause decodeURIComponent to throw. Fix the encoded string and try again.
Try Other Free Tools
Encode or Decode Now
Encode query values with encodeURIComponent, or decode percent-encoded text (including + as space).