URL Encoder & Decoder

Convert spaces and reserved characters into percent-encoded URL strings (%20, %26, %3D) or decode percent-encoded URLs back to readable text. Switch between encodeURIComponent (for query parameter values) and Full URI (encodeURI) modes with live malformed-sequence validation.

68 chars
Client-Side Processing. URL queries and strings are processed locally in your web browser.
Advertisement

How to Use URL Encoder & Decoder

Select **URL Encode** or **URL Decode** at the top left, then choose one of the two encoding scopes on the top right: **encodeURIComponent (Recommended)** (escapes all reserved URI delimiters including `:`, `/`, `?`, `&`, `=`, `+`, and `#` so a string can be safely inserted inside a query parameter) or **Full URI (encodeURI)** (keeps valid URL structure characters like `https://`, `/`, `?`, `&`, and `=` intact while encoding spaces as `%20` and non-ASCII characters). As you type or paste in the left box, the right box outputs the converted string immediately—or displays a **Malformed URI sequence** alert if a `%XX` token in Decode mode is not valid hexadecimal. Use **Swap** to flip the output back into the input box and **Copy** to copy the result. Note that URL percent-encoding is a public character-escaping rule for safe HTTP transmission, not a form of URL encryption. For Base64 payloads or QR links, check our Base64 Encoder & Decoder and QR Code Generator.

  1. 1

    Choose URL Encode or URL Decode

    Click URL Encode to convert spaces and symbols into %XX sequences, or URL Decode to restore readable text.

  2. 2

    Pick encodeURIComponent or Full URI Mode

    Select encodeURIComponent for individual query values or Full URI (encodeURI) for complete web addresses.

  3. 3

    Paste Your URL or Query Parameter

    Enter your string in the left input box and check the live character count and converted output on the right.

  4. 4

    Swap Modes or Copy Output

    Click Swap to test round-trip encoding/decoding or click Copy to copy the result to your clipboard.

Worked Input & Output Example

Comparing encodeURIComponent vs. Full URI (encodeURI) on a Query URL

encodeURIComponent escapes structural delimiters (: / ? & =), whereas encodeURI only escapes spaces and unsafe characters.

1. Sample URL With Spaces & Ampersand
https://toolorahub.vercel.app/search?q=free tools & mode=client-side

68 characters containing protocol slashes, query delimiters (? & =), and spaces.

2. Component vs. Full URI Rules

encodeURIComponent escapes : / ? & = and spaces (%20) · encodeURI escapes only the spaces (%20).

Client-side calculation
3. Percent-Encoded Outputs
Component: https%3A%2F%2F...%3Fq%3Dfree%20tools%20%26%20mode%3Dclient-side

Full URI (encodeURI): https://toolorahub.vercel.app/search?q=free%20tools%20&%20mode=client-side.

Space Character%20Escaped in both modes
Ampersand (&)%26 (Component)Preserved in Full URI mode
Colon & Slash (: /)%3A %2F (Component)Preserved in Full URI mode
Encoding PurposeRFC 3986 EscapingTransport safety (not encryption)

Related Free Tools

Explore more browser-based tools in Daily & Text Utilities or browse the complete All Tools Directory.