.Convertor
Menu

URL Encode Decode

Input is detected automatically: plain text is encoded and valid percent-encoded text is decoded. You can also choose encode or decode manually.

Local processing · No File Upload Required

Files are processed in this browser without automatic uploads. Loading processing components for the first time may require an internet connection.

URL encoding and decoding: uses and scope

URL encoding represents special characters as percent-encoded sequences for query parameter values, path segments and inspecting escaped text in logs.

When automatic mode fails to decode, the input will be treated as plain text. Manual decoding requires valid percent-encoding and UTF-8 sequences.

Capabilities explained

Parameter values differ from whole URLs

Encoding processes characters like slashes, question marks, and equal signs; First, it is essential to determine whether the content to be encoded is a parameter value or a URL fragment; the encoded result should not be treated as a complete URL for structural rewriting.

Percent decoding and plus signs

Decoding reads valid percent-encoded UTF-8 sequences and preserves literal plus signs. This differs from form-encoding rules that treat + as a space.

Practical examples

Encode text containing a space

Input

hello world

Conversion Result

hello%20world

This illustrates percent-encoding a space for a parameter value or path segment.

Decode a plus character

Input

a%2Bb

Conversion Result

a+b

Decoding %2B produces a plus sign. A literal plus in a+b is not automatically converted to a space.

Usage Steps

  1. Paste text or link

    Enter original text, query parameters, or already-encoded URL fragments.

  2. Auto Detect

    Input is detected automatically: plain text is encoded and valid percent-encoded text is decoded. You can also choose encode or decode manually.

  3. Copy to Continue

    After confirming the results, use one-click copy to interface debugging, log troubleshooting, or page links to continue using.

Frequently Asked Questions

Why is the decoded result sometimes empty?

Invalid input in manual decode mode clears the results and shows an error. Automatic mode encodes it as plain text; switch modes when the input is ambiguous.

When should you prioritize using the encoding result?

When text needs to be placed in URL query parameters, path segments, callback addresses, or link fields in logs, encoding first prevents special characters from breaking the structure.

Why is a plus sign not decoded as a space?

This tool follows the encoding and decoding rules for URL text, where a plain + remains as +; Spaces are represented as %20. To process form data, use the appropriate form parsing rules.

Related tools

Related Articles