URL encoder / decoder

    Percent-encode and decode URL strings and query components.

    Loading tool…

    About the url encoder / decoder

    Percent-encodes and decodes URL text, with a choice between component encoding — which escapes the reserved characters &, =, ?, / and # — and whole-URI encoding, which leaves them intact. Picking the wrong one is the usual cause of broken query strings.

    Frequently asked questions

    Component or whole URI?

    Use component encoding for anything going inside a query parameter value. Use whole-URI encoding when tidying an entire address that already has its structure and you only want spaces and accents escaped.

    Why is a space sometimes + and sometimes %20?

    The plus form belongs to HTML form submission encoding. Percent-twenty is correct everywhere else, including URL paths, and is what this tool produces.

    Often used alongside