URL Encoder & Decoder

Encode URLs or decode percent-encoded strings instantly in your browser. No upload, no account.

Encoded or decoded URL appears here.

How to use this tool

What this tool does and how it can help.

URL encoding (percent-encoding) converts characters into a safe text format so they can be transmitted in a URL without being interpreted as separators or control characters.

For full URLs, this tool uses encodeURI so the protocol and separators stay usable, while encodeURIComponent is used for plain text or individual components.

  • Encode query parameters safely
  • Decode encoded URLs from logs or APIs
  • Inspect percent-encoded strings
  • Prepare URLs for requests

It is useful for APIs, query strings, and debugging when inspecting encoded links or request payloads.

Everything happens in your browser.

FAQ

What is URL encoding?
URL encoding is a percent-encoding method that replaces unsafe characters with a % plus two hex digits so URLs can be parsed consistently across systems.
Why do spaces become %20?
Spaces are not URL-safe in query and path components. They are encoded as %20 to preserve the exact value when moved through HTTP requests.
How does percent encoding work?
Each character is transformed into one or more hexadecimal byte values and represented as %XX sequences.
Is URL encoding the same as encryption?
No. URL encoding is only an encoding for transport safety, not encryption or security.
Is my data sent to a server?
No. All encoding and decoding happens locally in the browser with no upload.

Related tools