URL Decode/Encode

Online URL decoder/encoder tool, supports URL encoding and decoding conversion, helps you correctly handle special characters in URLs.

URL Decode

URL Encode

URL Encoder/Decoder Tool

URL encoding is a method of converting special characters into a format that can be safely transmitted in URLs. In URLs, certain characters are reserved or unsafe and need to be encoded for proper transmission.

Why URL Encoding?

  • URLs can only use ASCII character set for transmission over the internet
  • Some characters have special meanings in URLs (like ?, =, &, / etc.)
  • Non-ASCII characters (like Chinese) and special characters (like spaces) need to be converted to valid ASCII characters

URL Encoding Rules

  • Spaces are converted to %20
  • Non-ASCII characters are converted to %XX format, where XX is the hexadecimal ASCII code
  • Common characters that need encoding:
    CharacterEncoded
    Space%20
    !%21
    #%23
    $%24
    &%26
    '%27
    (%28
    )%29
    *%2A
    +%2B
    ,%2C
    /%2F
    :%3A
    ;%3B
    =%3D
    ?%3F
    @%40
    [%5B
    ]%5D

How to Use

  1. URL Decoding:

    • Enter the URL-encoded string in the top input box
    • The decoded result will automatically appear in the output box below
    • Click the copy button to copy the decoded result
  2. URL Encoding:

    • Enter the original string in the bottom input box
    • The encoded result will automatically appear in the output box below
    • Click the copy button to copy the encoded result

Important Notes

  • Some invalid URL encodings may not be parsed correctly, in which case an error message will be shown
  • The encoding result will encode all characters that need encoding, including URL reserved characters
  • It's recommended to only encode the URL parameters rather than the entire URL