URL Encoder/Decoder

    Encode and decode URL parameters safely

    Instant Convert

    Encode or decode with one click

    100% Private

    Runs entirely in your browser

    No Signup

    Free tool, no registration required

    What Is URL Encoding?

    URL encoding — also called percent-encoding — is the process of converting characters that are not allowed in a URL into a safe representation using a percent sign followed by two hexadecimal digits. The HTTP specification (RFC 3986) defines which characters are "unreserved" and safe to include directly (A–Z, a–z, 0–9, and -_.~) and which must be encoded. Spaces become %20, ampersands become %26, and equals signs become %3D, among many others.

    Common Use Cases

    Front-end developers encode user-supplied search terms before appending them to query strings, ensuring characters like & and = don't break the URL structure. Backend engineers encode redirect target URLs when passing them as query parameters so the nested URL doesn't interfere with the outer one. API clients encode parameters that contain spaces or international characters before constructing requests, and web scrapers decode percent-encoded sequences to read the actual content from crawled URLs. OAuth redirect URIs and webhook callback URLs also commonly require proper percent-encoding.

    How to Use This Tool

    Choose "Encode" to convert plain text (including spaces, symbols, and Unicode) into a percent-encoded string safe for use in URLs. Choose "Decode" to reverse the process and reveal the original text. Paste your input and click the button — the result appears instantly. The Swap button lets you chain operations, feeding the output straight back as input with the mode flipped. This tool uses JavaScript's native encodeURIComponent and decodeURIComponent functions, which correctly handle the full Unicode range.

    Technical Notes

    encodeURIComponent encodes everything except unreserved characters, making it suitable for query parameter values. Its sibling encodeURI (not used here) preserves reserved characters like ?, &, and /, so it's only suitable for encoding a full URL (not individual values). Non-ASCII characters are first converted to UTF-8 bytes, then each byte is percent-encoded separately, which is why a single emoji can expand to 12 or more characters. All processing happens client-side in your browser with no server involvement.

    Frequently Asked Questions