URL Encoder / Decoder

Input: 0 chars Output: 0 chars

About This Tool

Use this tool to percent-encode a URL component or decode an encoded string back into readable text. It is useful when a query value contains spaces, Japanese text, &, =, #, +, or other characters that can change the meaning of a URL.

The encoder uses the same component-level behavior as JavaScript encodeURIComponent, so reserved URL characters such as /, ?, and & are encoded when they appear in the input.

Common Use Cases

Preparing Query Parameter Values

Encode a value before adding it to a query string, such as converting hello world to hello%20world or a+b to a%2Bb.

Reading Encoded URLs

Paste an encoded value to see the readable text behind %XX sequences, including non-ASCII text.

Check whether a copied URL contains characters that should be encoded before it is placed into code, logs, or documentation.

How to Use

  1. Paste a URL or text fragment into the input area.
  2. Choose Encode or Decode.
  3. Review the result in the output area.
  4. Use Swap if you want to send the output back to the input.
  5. Use Copy to copy the output.

Notes / Limitations

This tool transforms text. It does not validate that the result is a complete, reachable, or safe URL.

  • Decode mode converts + to a space before decoding, which matches common form-style query string behavior.
  • Malformed percent sequences, such as an incomplete % escape, show an error instead of a decoded result.
  • Encode mode is for URI components. If you paste a full URL, separators such as /, ?, and & are encoded too.

Privacy & Processing

The encode and decode logic runs in the page with browser JavaScript. The URL tool code does not make a network request with your input.

What Is URL Encoding?

URL encoding, also called percent encoding, represents characters as % followed by two hexadecimal digits. For example, a space becomes %20, & becomes %26, and # becomes %23.

Characters such as letters, numbers, -, _, ., and ~ normally stay readable. Characters with a special role in URLs are encoded when they are part of a value rather than part of the URL structure.