URL Encoder / Decoder

Encode or decode URL components and query-string values safely. Encode text for safe use as a URL component or decode percent-encoded text into a readable form. Use component mode for individual query values and full-URL mode for complete URLs.

Input and options

Ready. Results update as you type.

Result

Input length / items0
Output length / items0

How to Use the URL Encoder / Decoder

  • Enter or paste your input in the text area, or choose an available input control.
  • Select the conversion or formatting options that match your task.
  • Review the result and the status message for errors or confirmation.
  • Use Copy result or Download .txt to save the output.

About the URL Encoder / Decoder

Encode text for safe use as a URL component or decode percent-encoded text into a readable form. Use component mode for individual query values and full-URL mode for complete URLs.

This free developer utility is designed for desktop, tablet and mobile screens. It uses the MohakTools centralized theme styles and shared site header and footer scripts.

Common questions about URL Encoder/Decoder

What is URL component encoding?

It encodes characters that have special meaning in a URL component, such as a query parameter value.

Should I use full URL mode or component mode?

Use component mode for individual values and full URL mode when you want URL separators to remain intact.

Why can decoding fail?

The input may contain malformed percent-encoding sequences.

Explore Related Tools

Continue with other MohakTools developer utilities.

Privacy note: processing runs in your browser. Avoid entering confidential data on shared or untrusted devices.

What does URL encoding do?

It replaces characters that are unsafe in a URL with a percent sign and two hex digits, so a space becomes %20.

When should I use encodeURIComponent?

When encoding a value that goes inside a query string. encodeURI leaves separators such as & and = intact, which is right for a whole URL but wrong for a single parameter.

Why does + sometimes mean a space?

In form submissions a plus represents a space, a convention older than percent encoding. Both appear in the wild.