Skip to content
Web & Developer 100% Client-side · Private in Browser

URL Encoder / Decoder

The URL Encoder / Decoder converts text and URLs to and from RFC 3986 percent-encoded format. Features encodeURIComponent, encodeURI, form-urlencoded modes, automatic multi-layer recursive decoding, and an interactive query parameter inspector table.

Privacy Guaranteed: 100% Client-Side URL Processing — Zero Request Logging
RFC 3986 • WHATWG URL Standard Compliant
Load sample:
Encoding Mode:
71 chars

📖 RFC 3986 URL Percent-Encoding Reference

SpaceWhitespace
%20
/Forward Slash / Path separator
%2F
:Colon / Scheme & Port delimiter
%3A
?Question Mark / Query separator
%3F
&Ampersand / Param separator
%26
=Equals / Key-value delimiter
%3D
#Hash / Anchor fragment
%23
+Plus sign
%2B
%Percent sign (Escape token)
%25
@At sign / Auth credentials
%40
$Dollar sign
%24
,Comma
%2C
;Semicolon
%3B

Encoding special characters into percent-escaped sequences (e.g., %20 for spaces, %2F for slashes) prevents malformed HTTP requests, broken OAuth redirect loops, and parameter injection. This tool supports strict component encoding, full URI preservation, multi-layer recursive decoding, and a live query parameter editor.

How to use the URL Encoder / Decoder

  1. Select your desired mode: URL Encoder, URL Decoder, or Query Param Inspector.
  2. Paste your URL, query string, or plain text into the input box.
  3. Choose between encodeURIComponent, encodeURI, or Form URL (+ for space) encoding modes.
  4. Use the Query Inspector tab to view and modify individual parameters and copy the reassembled URL.

Common use cases

  • Safely escape query parameters, OAuth callback URLs, and API endpoints.
  • Decode nested or multi-layer percent-encoded tracking links (e.g. Google Analytics UTM links).
  • Inspect, modify, and add query parameters to lengthy webhooks or API requests.
  • Prevent HTTP 400 Bad Request errors caused by unescaped ampersands, colons, or spaces.

Tips

  • Use 'encodeURIComponent' for individual query parameter keys and values, but use 'encodeURI' when you want to preserve the protocol and path slashes of a complete URL.
  • If a URL has been encoded multiple times (e.g., in nested redirection links), use the 'Unpack All Layers' button to strip recursive percent-encoding in one click.
  • The Query Param Inspector parses parameters into an editable table, allowing you to add, tweak, or remove key-value pairs with instant live reassembly.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent? +

encodeURI preserves valid URL structural characters (like ://, ?, &, and /) and only encodes illegal characters. encodeURIComponent encodes all special characters including slashes, ampersands, and colons, making it safe for query parameter values.

Why are spaces sometimes encoded as '%20' and sometimes as '+'? +

'%20' is the standard percent-encoding mandated by RFC 3986 for URIs. The plus sign '+' is used exclusively in HTML form submissions (application/x-www-form-urlencoded). Both are supported by this tool.

Is my URL or private token sent to any server? +

No. All encoding, decoding, and query string manipulation run entirely inside your browser's memory. No URLs or auth tokens are ever transmitted or logged.

Related reading