Skip to main content

Encoding & Number Bases

URL Encoder and Decoder

Percent-encode text as UTF-8 or decode %XX escapes. Choose whether + means a space and whether URL punctuation such as & and = is encoded.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Percent-encode text as UTF-8 or decode %XX escapes. Choose whether + means a space and whether URL punctuation such as & and = is encoded.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Encoding represents selected bytes with percent escapes. Decoding interprets those escapes as text.

The result contains the encoded or decoded string.

  • Encode a search term or file name before you append it to a query string.

Sources: RFC 3986: URI generic syntax and percent-encoding; WHATWG URL Standard: application/x-www-form-urlencoded

Encode spaces and separators in query text

Input: name=Jane Doe&city=New York

Settings: Encode, Encode all special chars off

Result: name=Jane%20Doe&city=New%20York

With Encode all special chars on, = also becomes %3D and & becomes %26.

Choose the direction and avoid double encoding

  1. Choose Encode or Decode.
  2. Enable Encode all special chars for a query value or path segment.
  3. For decoding, set Treat "+" as space according to the source format.
  • The current encoder also escapes unreserved punctuation. Avoid applying it to a complete address.
  • With Encode all special chars off, existing percent signs and plus signs can produce unintended server input.
  • Invalid UTF-8 triggers a Latin-1 fallback across the decoded input.
  • Encoding does not hide sensitive data from URL logs.