URL Encoder/Decoder

Percent-encode or decode any text, query-string value or full URL — instantly, as you type. Switch between component mode for a single value and full-URL mode for a complete address, handle form-style + spaces, and get a clear explanation when encoded input is invalid instead of a garbled result.

Quick answer: URL encoding replaces unsafe characters with % plus two hex digits — a space is %20, & is %26, é is %C3%A9. So the search term rock & roll: 100% live! encodes to rock%20%26%20roll%3A%20100%25%20live! — safe to place inside any URL.
Try an example
Mode
Treat the text as
Form style
Autosave on — draft stays in this browser only

Find & Replace (in the input)

Fix a repeated term in a pasted URL or query string everywhere at once — the result re-converts live.

Send result to…

Your converted text travels with you in the link's fragment (after the #) — browsers never send that part to a server, and the next tool opens with it already loaded.

Your session

Snapshots, pinned conversions and your tools — kept in this browser only, on your device, so you can step back to an earlier conversion. Nothing is uploaded; clear any of it whenever you like.

Conversion history (this browser)

No snapshots yet — convert something, then “Save snapshot to history”.

    Pinned conversions

    Nothing pinned yet — pin a conversion you run often.

      Recently used

      No other tools opened yet this session — tools you visit will appear here.

        Favorites ★

        Tap ☆ Pin on any tool below to keep it here.

          All encoding & conversion tools — tap ☆ to favorite

            How to encode or decode a URL

            1. Paste your text. A full address, one query-string value, or any plain text — conversion happens live as you type.
            2. Choose Encode or Decode. Encode turns special characters into %XX sequences; Decode turns them back into readable text.
            3. Pick component or full URL. Component mode is for a single value going inside a URL — it encodes &, = and ? so the value can't break the address. Full-URL mode keeps a complete address's structure (: / ? & = #) intact.
            4. Copy the result. Or download it as a .txt file, or swap it back into the input to convert in the opposite direction.

            Component vs full-URL encoding

            The two modes differ in which characters they leave alone. Full-URL mode (JavaScript's encodeURI) trusts that your text is already a structured address, so it preserves the separators. Component mode (encodeURIComponent) trusts nothing — use it whenever a value comes from a user, a form or a database.

            CharacterFull URL modeComponent mode
            :: (kept)%3A
            // (kept)%2F
            ?? (kept)%3F
            && (kept)%26
            == (kept)%3D
            ## (kept)%23
            space%20%20 (or + in form style)
            é%C3%A9%C3%A9

            Worked example: in the address https://example.com/menu?dish=crème brûlée&price=$12.50, component-encoding just the dish value gives cr%C3%A8me%20br%C3%BBl%C3%A9e, while full-URL encoding the whole address keeps every :, /, ? and & and encodes only the spaces and accented letters.

            Percent-encoding reference

            The characters most often encoded, with their %XX codes (the byte values are the same in both modes unless the character is structural, as shown above).

            space → %20! → %21" → %22# → %23
            $ → %24% → %25& → %26' → %27
            ( → %28) → %29* → %2A+ → %2B
            , → %2C/ → %2F: → %3A; → %3B
            < → %3C= → %3D> → %3E? → %3F
            @ → %40[ → %5B] → %5D^ → %5E
            ` → %60{ → %7B| → %7C} → %7D

            Non-ASCII characters take one %XX per UTF-8 byte: é is two bytes (%C3%A9), the euro sign € is three (%E2%82%AC), and most emoji are four. That is why encoded text with accents or emoji gets much longer than the original — the live counter above the result counts the sequences for you.

            The full code table, the component-vs-full-URL rules and the space conventions in one keepable file.

            Frequently asked questions

            What is URL encoding (percent-encoding)?

            URL encoding, also called percent-encoding, replaces characters that are not allowed in a URL with a % followed by two hexadecimal digits — the character's byte value in UTF-8. A space becomes %20, an ampersand becomes %26, and the letter é becomes %C3%A9 because it takes two UTF-8 bytes. Browsers and servers use it so data inside a URL is never confused with the URL's own structure.

            What is the difference between component and full-URL encoding?

            Component encoding (JavaScript's encodeURIComponent) is for one piece of a URL, such as a single query-string value: it encodes &, =, ?, / and : so the value cannot break out and change the URL's meaning. Full-URL encoding (encodeURI) is for a complete address: it leaves the structural characters : / ? & = # untouched and only encodes things like spaces and non-ASCII letters.

            Why is a space sometimes %20 and sometimes +?

            Both mean a space, in different places. %20 is the general percent-encoding of a space and is safe anywhere in a URL. The + sign is a legacy convention from HTML form submissions (application/x-www-form-urlencoded) and only means a space inside a query string — in a URL path, + is a literal plus. This tool lets you switch between the two with the form-style option.

            Which characters must be encoded in a URL?

            Only letters, digits and a small set of marks (- _ . ~ and a few reserved characters used as separators) may appear as-is. Everything else — spaces, quotes, <, >, #, %, non-English letters and emoji — must be percent-encoded when it is data rather than structure. The safest rule: if you are putting user text into a URL, component-encode it.

            Why did decoding fail with an invalid percent sequence error?

            Decoding fails when the input contains a % that is not followed by two hex digits (like %zz or a trailing %), or when a multi-byte UTF-8 character is cut off — for example %C3 on its own, when é needs %C3%A9. This tool reports exactly that instead of guessing, because a partially decoded URL usually means the text was truncated when it was copied.

            Is my text uploaded or stored?

            It is never uploaded. Encoding and decoding run entirely in your browser with JavaScript's built-in encode and decode functions, and nothing you paste is sent to a server or logged. So you can pick up where you left off, your current draft and the snapshots you save are kept in this browser's local storage, on your own device only — clear them any time with the controls under the input box and in the Your session panel.

            Can I save conversions and come back to them?

            Yes. Your draft autosaves in this browser as you type, and the Your session panel under the tool lets you save snapshots of conversions, pin the ones you reuse, and restore any of them with one click. Everything is kept in this browser's local storage on your device — nothing is uploaded — and you can delete snapshots or clear the saved draft at any time.

            How does sending my result to another tool work?

            The “Send result to…” bar puts your converted text in the link's URL fragment (the part after the #) and opens the tool you picked with the text already loaded. Browsers never send the fragment to a server, so the handoff stays entirely on your device. It works between the encoding and conversion tools in the suite.

            What to do with your encoded text next

            1. Put it in the URL. A component-encoded value is safe to drop into a query string as-is — that is exactly what component mode is for. Keep the rest of the address untouched.
            2. Layer another encoding. Send the result to the Base64 Encoder/Decoder when a token or API field needs Base64, or to the HTML Encoder/Decoder when the URL goes inside an HTML attribute.
            3. Check it as data. A decoded query string or payload can go straight to the JSON Formatter to be pretty-printed and validated.
            4. Keep the conversion. Pin it in Your session above, or download the percent-encoding cheat sheet so the codes you use most are always to hand.

            More free tools

            URL Encoder/Decoder is one of 33 free utilities in the suite. Working with other formats? Try the Base64 Encoder/Decoder or the HTML Encoder/Decoder next.

            Text Tools

            Generators

            Encoding & Conversion