OnlineNotes Logo

    URL Encoder and Decoder

    Encode or decode URLs and query values safely with component and full-URL modes.

    Input

    Output

    Ready

    Mode

    Encode

    Input chars

    0

    Output chars

    0

    When to use this tool

    Use URL encoding when building safe query strings or path segments from user-entered values.

    Decode mode helps inspect encoded links and payload fragments quickly.

    Frequently asked questions

    What is the difference between full URL and component mode?

    Full URL mode preserves separators like slash and colon, while component mode encodes values for query params and path segments.

    Can this tool decode plus signs as spaces?

    Yes. Enable form mode to treat plus symbols as spaces before decoding.

    Can I encode multiline input?

    Yes. Multiline input is supported, and each line is encoded in sequence.

    Related tools

    URL encoder decoder online for query parameters and path segments

    Use this URL encoder decoder online to percent-encode a query value, a form field, or a whole link, or to read one that is already encoded.

    URI component mode is for a single value inside a URL. Full URI mode is for a complete address, and it leaves characters such as / ? & and # as they are.

    How it works

    1. Choose Encode or Decode and a method. URI component uses encodeURIComponent, and Full URI uses encodeURI, both built into the browser. Characters outside ASCII are encoded as UTF-8 bytes.
    2. Each line is converted separately, so you can paste a list of values and get a list back.
    3. Decode plus as space turns + into a space before decoding, for form-style data. It only applies in Decode mode.
    4. After editing, press Run conversion. Changing the mode or an option reruns at once. Swap input/output moves the result to the input and flips the mode.

    Worked example

    Input

    https://example.com/search?q=São Paulo&page=2#top

    Output

    Full URI:
    https://example.com/search?q=S%C3%A3o%20Paulo&page=2#top
    
    URI component:
    https%3A%2F%2Fexample.com%2Fsearch%3Fq%3DS%C3%A3o%20Paulo%26page%3D2%23top

    Use Full URI on a whole link so it keeps working. Use URI component only on a value, such as "São Paulo" alone, because it also encodes the slashes and the ? that give the link its structure. In both modes, ã takes two UTF-8 bytes (%C3%A3).

    Edge cases and limits

    • Encoding always writes a space as %20, never +. The plus option affects decoding only. Component mode leaves A to Z, a to z, digits and - _ . ! ~ * ' ( ) alone, so an apostrophe stays as typed.
    • Encoding text that is already encoded double-encodes it: %20 becomes %2520. Decode first if you are not sure.
    • A stray percent sign, as in "100%", fails with "URI malformed". One bad line fails the whole run and clears the output, and the error does not say which line caused it.
    • Full URI decoding keeps reserved characters encoded: %2F and %26 stay as typed, while %20 becomes a space. Use URI component to decode those. The tool does not split a URL into parts or check that it is valid.

    When to use it

    • Encode search terms and filter values for URL parameters.
    • Decode a copied tracking link so you can read it.
    • Read form data where a plus sign stands for a space.
    • Compare component encoding with full URI encoding on the same text.