✍️ Text & Writing

URL Encoder / Decoder

Encode text for use inside URL parameters or decode percent-encoded text back into readable form. The tool uses encodeURIComponent and decodeURIComponent directly in the browser.

How to use

  1. Paste text, a query value, or an encoded URL component into the input box.
  2. Press Encode to create URL-safe text.
  3. Press Decode to restore percent-encoded text.
  4. If decoding fails, check for incomplete percent sequences.

Use cases

  • Encode search keywords before adding them to a query string.
  • Read encoded values inside tracking URLs.
  • Prepare API test parameters that contain spaces or CJK text.

Privacy & local processing

This tool runs mainly in your browser. The content you enter is not sent to Free Tools Hub servers.

FAQ

Does this encode a full URL?
It uses encodeURIComponent, which is best for individual query values or path fragments rather than an entire URL.
Why did decoding fail?
A percent sign may be missing two hexadecimal characters, or the text may not be valid URI encoding.
How are spaces encoded?
encodeURIComponent encodes spaces as %20, not as plus signs.

Last updated: