+Moyoutil
English

URL Encoder and Decoder

Encode or decode characters in a URL component.

How to use the URL Encoder and Decoder

You can encode URL components such as search terms or decode characters expressed as percents.

Example usage

Spaces are replaced with %20. & in the search term is replaced with %26 to distinguish it from other parameters.

Please note

Apply encodeURIComponent to individual components rather than the entire address. When decoding, the + is retained.

Step-by-step instructions

  1. Enter one search term or URL parameter value.
  2. Select encoding or decoding.
  3. Check for double encoding when putting into a completed address.

The entire address and parameter values are different

This tool uses encodeURIComponent and decodeURIComponent. The purpose is to safely pass some values ​​of the URL. If you encode the entire address, : and / are also converted, so it cannot be used directly as a regular link. Re-encoding an already encoded %20 results in %2520, which is different from the original intent.

Example of URL encoding input and results
Original textEncoding result
a ba%20b
a&ba%26b
한글%ED%95%9C%EA%B8%80

Frequently Asked Questions

Decoded + does not change to space.

This tool follows URI component rules, so leave the + as is. This is different from the application/x-www-form-urlencoded rule for HTML forms.

I get an error saying it's an invalid URI.

The hexadecimal format following % may be incorrect or not a valid UTF-8 byte combination. Make sure the original is not cropped.

Can URL encoding prevent XSS?

URL encoding alone does not solve all security problems. Proper handling is required for each HTML output, URL whitelist, and script context.

Created and operated by: Moyoutil · Content review: 2026-10-01 · Error report

Tool Utilization Blog

See all blogs

URL Query Strings: Why +, %20 and %2B Change a C++ Search

Compare +, %20 and %2B with actual code. Learn how decodeURIComponent differs from URLSearchParams, how to preserve a C++ search, and how double encoding happens.

Read the article

JSON Formatting, Base64 and URL Encoding: A Practical Guide

Distinguishes the purposes of JSON grammar checking and cleaning, UTF-8 Base64 encoding/decoding, and URL parameter encoding. We've compiled examples you can run yourself, as well as big integers, double encoding, and security precautions.

Read the article