Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
URL Encoder/Decoder

URL Encoder/Decoder

Encode text into URL-safe percent-encoding or decode it back, with an auto-detect action and a URL breakdown showing query parameters.

URL Encode and Decode Online

URL encode any text into safe percent-encoding, or decode a URL-encoded string back to readable text, right in your browser. Paste a value or a full URL and the tool detects which way to convert it, then shows the result you can copy in one click.

It is built for developers, API builders, and anyone wiring up query strings or links: turn spaces, ampersands, and Unicode characters into %20, %26, or their UTF-8 byte sequences so a URL stays valid, and reverse the process to make a cryptic %-encoded string human-readable again.

Private by design: every encode, decode, and URL parse runs entirely in your browser. Your text is never uploaded to a server, logged, or stored.

How to Encode or Decode a URL

1

Enter your text

Type or paste your text or URL into the Input field, or click Paste to pull it straight from your clipboard. Use Sample to load an example URL with special characters.

2

Encode or decode

Click Encode to percent-encode the input, or Decode to convert an encoded string back. The tool auto-detects encoded input and highlights the action it suggests.

3

Inspect the URL breakdown

When the value is a valid URL, the URL Breakdown panel appears with its protocol, host, port, path, query, and fragment, plus a Query Parameters table of key-value pairs.

4

Copy the result

Click Copy Output to copy the result with a quick visual confirmation. The output is editable, so you can tweak it before copying or feed it back in to encode again.

Features

Percent-Encode Text

Encodes input with the standard encodeURIComponent so spaces, symbols, and special characters become safe %-escaped sequences.

Decode Encoded Strings

Turns any percent-encoded string back into readable text with decodeURIComponent, with a clear error for malformed sequences.

Auto-Detect Action

As you type, the tool scans for %-encoded patterns and highlights whether to Encode or Decode, so you never pick the wrong direction.

Full Unicode Support

Handles accented letters, Chinese, Japanese, Korean, Arabic, and emoji by encoding each character as its UTF-8 byte sequence.

URL Breakdown Parser

Splits a valid URL into protocol, host, port, path, query, and fragment so you can see exactly how it is structured.

Query Parameters Table

Extracts query-string parameters into a clean key-value table with a count badge, so nested values are easy to read.

Quick Actions

Paste from the clipboard, load a sample URL, or clear both fields in one tap to move through tasks fast.

Editable, Copyable Output

The output field stays editable and copies to your clipboard with one click and a visual confirmation.

Runs in Your Browser

All encoding, decoding, and parsing happen on your device with no server requests and no tracking.

Frequently Asked Questions

What is URL encoding (percent-encoding)?

URL encoding, also called percent-encoding, converts characters into a format that is safe to transmit in a URL. Special characters, spaces, and non-ASCII text are replaced with a percent sign followed by two hexadecimal digits — for example a space becomes %20 and < becomes %3C — so the URL stays valid for browsers and servers.

How do I encode a space in a URL as %20?

Just type or paste your text and click Encode. This tool uses encodeURIComponent, which turns a space into %20 as defined by RFC 3986. The + notation for spaces only applies to the application/x-www-form-urlencoded format used by HTML forms, so %20 is the more universally compatible choice.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but keeps characters like :, /, ?, #, and & that have special meaning. encodeURIComponent encodes everything except letters, digits, and - _ . ~, which makes it the safe choice for an individual parameter value. This tool uses encodeURIComponent for maximum safety.

How do I decode a URL-encoded string?

Paste the percent-encoded string into the Input field. The tool detects the encoded pattern and highlights the Decode button — click it to convert the value back to readable text. If the string contains a malformed sequence such as %ZZ or an incomplete %2, you get a clear error message instead of a crash.

Can I encode non-English characters and emoji?

Yes. The tool fully supports Unicode, including accented letters, Chinese, Japanese, Korean, and Arabic characters, and emoji. Each character is encoded as its UTF-8 byte sequence in percent-encoded form, then decoded back to the original characters.

Does my data stay local in the browser?

Yes. All encoding, decoding, and URL parsing run entirely in your browser using JavaScript. Nothing you type is transmitted to a server, collected, or stored, so it is safe to use with sensitive parameter values.

URL Breakdown
Protocol
Host
Port
Path
Query
Fragment
Paste a value and the tool will auto-detect whether to encode or decode
Click Sample to load an example URL with special characters
The URL Breakdown panel appears automatically when a valid URL is detected
Use encodeURIComponent for individual parameter values — it is the safest choice this tool applies
All encoding and decoding happens in your browser — nothing is sent to any server
Want to learn more? Read documentation →
1/6
Start typing to search...
Searching...
No results found
Try searching with different keywords