A Helpful Website

A set of helpful tools

URL Encoder & Decoder

Encode plain text or query parameters to URL-safe percent-encoded format, or decode percent-encoded strings back to readable text. All processing happens in your browser — your data never leaves your device.

Component mode encodes almost all special characters, making it safe for use inside query parameters and form fields.

What Is URL Encoding and Why Use It?

URL encoding, also known as percent-encoding, is a mechanism for encoding arbitrary data in a Uniform Resource Identifier (URI) under certain circumstances. It replaces unsafe ASCII characters with a percent sign (%) followed by two hexadecimal digits. This ensures that special characters — like spaces, ampersands, question marks, and non-ASCII characters — do not interfere with the structure of a URL.

Common Use Cases

Query parameters: When you build a URL with dynamic data, such as https://example.com/search?q=hello world, the space must be encoded as %20 or + so the server interprets the query correctly. Our Component mode handles this automatically.

Form submissions: Browsers encode form data using the same rules as encodeURIComponent before sending it to a server. Developers often need to inspect or reproduce this encoding manually when debugging APIs.

Non-ASCII characters: URLs can only contain a limited set of ASCII characters. If you need to include emojis, accented letters, or characters from other writing systems, they must be percent-encoded as UTF-8 byte sequences. For example, the emoji 🚀 becomes %F0%9F%9A%80.

API debugging: When inspecting network requests or API documentation, you frequently encounter encoded strings like name%3DJohn%26age%3D30. Decoding these instantly reveals the underlying data structure without manual deciphering.

Component Mode vs. Full URL Mode

Component mode uses encodeURIComponent, which encodes every character except A-Z a-z 0-9 - _ . ! ~ * ' ( ). This is the right choice when you are encoding a piece of data that will be inserted into a query string or form field.

Full URL mode uses encodeURI, which preserves URL-reserved characters like /, ?, :, and @. This is useful when you want to encode an entire URL that contains special characters in its path or fragment, but you still need the URL structure itself to remain valid.

How to Use This Tool

Paste the text you want to encode into the input box, select the appropriate mode, and click Encode. To reverse the process, paste a percent-encoded string and click Decode. Use Swap to move the output back to the input for chained operations. Component mode is selected by default and works for the vast majority of encoding tasks.