digtools
\n
🔗
url encoder decoder,

URL Encoder / Decoder

Encode and decode URL percent-encoding in real time.Perfect for building query parameters and analyzing URLs.

🔄
Two-Way Conversion
Encode ↔ Decode with one click
Real-Time
Results appear as you type
🔒
Browser-Based
No data is sent to any server
Input (text to encode)
Result
🔒 All conversions happen in your browser. No data is sent to any server.
about,

What is URL Encoder / Decoder?

A free online tool that converts special characters in URLs — such as spaces, Japanese text, and symbols — into RFC 3986-compliant percent-encoding (%XX format). You can also decode encoded URLs back to readable strings.

Supports both encodeURIComponent and encodeURI modes, making it ideal for building API query parameters or verifying SEO-friendly URLs. All processing is done locally in your browser.

how to use,

How to Use

STEP 1

Select Mode

Choose either "Encode" or "Decode" mode using the toggle buttons.

STEP 2

Enter Text

Paste your URL or string into the left textarea. Results appear on the right in real time.

STEP 3

Copy & Use

Click the Copy button to copy the result to your clipboard. Use Swap to reverse input and output.

glossary,

Glossary

Percent-Encoding
A method of encoding characters that cannot be used in URLs into %XX format (XX is hexadecimal). Defined in RFC 3986.
encodeURIComponent
JavaScript function that encodes all special characters including /, ?, and &. Used for query parameter values.
encodeURI
JavaScript function that leaves URL structural characters (/, :, ?, #, &) unencoded while encoding everything else.
UTF-8
Unicode encoding format. One Japanese character is encoded as 3 bytes (e.g., %E6%9D%B1).
RFC 3986
Internet standard defining URI syntax, including the distinction between reserved and unreserved characters.
Query String
The part of a URL after ? containing key=value parameters joined by &.
Fragment
The part of a URL after # that specifies an in-page anchor.
faq,

FAQ

Q.What is the difference between encodeURIComponent and encodeURI?
encodeURIComponent encodes all special characters including /, ?, and &. encodeURI leaves URL structural characters intact and only encodes non-ASCII characters.
Q.Is my URL data sent to a server?
No. All conversions are performed entirely in your browser using JavaScript's built-in functions.
Q.What happens when I encode Japanese text?
The text is encoded in UTF-8, converting each Japanese character to a three-byte percent-encoded sequence like %E6%9D%B1.
Q.What if decoding fails?
An error occurs if the input contains invalid percent-encoding sequences (e.g., %ZZ). Please verify your input.
Q.Can I encode Base64 here?
This tool is specifically for URL percent-encoding. Please use a dedicated Base64 tool for Base64 encoding.
use cases,

Use Cases

🔧 API Development

Verify encoding of Japanese or special characters in query parameters.

🔍 SEO & Link Audit

Decode encoded URLs to confirm they point to the intended content.

📧 Email & Chat

Decode encoded URLs received in emails or messages.

📊 Analytics Logs

Decode percent-encoded URL parameters in server access logs.

Disclaimer

The tools provided on this site are completely free to use, but please use them at your own risk. We make no guarantees regarding the accuracy, completeness, or safety of any calculation results, conversion results, or generated data. Please be aware that the operator assumes no responsibility for any damages or troubles caused by the use of these tools. Most tools process files and calculations locally in your browser, meaning your inputted data is neither sent to nor stored on our servers.