URL Encoder/Decoder

Developer

Free online URL encoder and decoder. Percent-encode special characters in URLs or decode them back. Supports Component and Full URL modes. Runs in your browser.

Mode
Input
Output

How to Use

  1. 1 Choose Encode to percent-encode your text, or Decode to convert encoded text back to readable form
  2. 2 Select the mode: Component for encoding a URL parameter value, Full URL for encoding a complete URL
  3. 3 Paste or type your input into the left area
  4. 4 Click the Encode or Decode button to process
  5. 5 Copy the result from the right area with the Copy button

Use Cases

Encode Query Parameter Values

Safely encode values before appending them to a URL query string, ensuring characters like & and = don't break the URL structure.

Decode URLs from Logs

Decode percent-encoded URLs found in server logs or browser address bars to read the original human-readable text.

Build API Requests

Encode dynamic values before inserting them into API endpoint URLs to prevent parsing errors on the server side.

Share Links with Special Characters

Encode a full URL containing spaces or non-ASCII characters so it can be safely shared in emails, documents, or chat messages.

FAQ

Component mode uses encodeURIComponent, which encodes all special characters including ? & = : and /. Use this when encoding a single value that will be placed inside a URL. Full URL mode uses encodeURI, which preserves those structural characters so the URL remains valid. Use this when encoding a complete URL.

Yes. All encoding and decoding happens entirely in your browser. Your data is never sent to any server.

Percent-encoding (also called URL encoding) replaces characters that are not allowed or have special meaning in URLs with a percent sign followed by two hexadecimal digits representing the character's byte value. For example, a space becomes %20.

Use Component mode. A search query is a parameter value (the part after q=), so all special characters including & and + should be encoded. Full URL mode would leave those characters unencoded.

Yes, the decoder handles both Component-encoded and Full-URL-encoded strings using decodeURIComponent, which correctly interprets all standard percent-encoded sequences.

Once the page is loaded, the tool works entirely in your browser with no internet connection required.

Related Tools