URL Encode/Decode

Escape a URL component or a full address, or decode percent escapes.

Tool options

Enter text to get started.

How to use URL Encode/Decode

  1. Paste or type your input. You can also load the example below.
  2. Adjust the available options. Results update after you finish typing; for very large inputs, select Run.
  3. Review the result, then copy it or download it to your device.

How this tool works

Component encoding follows encodeURIComponent; full-URL encoding follows encodeURI. Decoding is UTF-8 only. Line mode retains blank lines. The + means space switch applies only when decoding form-style data.

Input and output stay in the current page. Refreshing or closing the page clears them. For very large inputs, use Run to start processing; a task that takes too long is stopped so you can change the input.

Frequently asked questions

Which mode should I use?

Encode a component for a query value or path segment. Encode a full URL to preserve address separators.

Why does decoding fail?

A percent escape may be truncated, or its bytes may use an encoding other than UTF-8. Errors do not return partial output.