edit_note Input
text_fields 0 Input Chars
link 0 Output Chars
percent Size Ratio
link Output
Encoded URL will appear here...

How to Use

  1. 1
    Enter your URL or text

    Type or paste the URL, query string, or plain text you want to encode, or a percent-encoded string you want to decode.

  2. 2
    Choose mode

    Select Encode to convert text to a percent-encoded URL string, or Decode to convert it back to readable text.

  3. 3
    See instant results

    The output updates in real time as you type. Unicode characters including emoji and CJK scripts are fully supported.

  4. 4
    Copy the result

    Click Copy Output to grab the encoded or decoded string and use it in your project, API call, or browser address bar.

Common Use Cases

manage_search

Query Parameters

Safely encode search terms, filters, and user input before appending them as URL query parameters to avoid breaking the URL structure.

api

API Endpoints

Encode dynamic path segments and parameter values when constructing REST API URLs to ensure special characters are transmitted correctly.

folder_open

File Paths

Convert file names with spaces or special characters into a URL-safe format for use in web servers, CDN links, and static asset references.

bug_report

Debugging

Decode percent-encoded URLs from logs, error messages, or browser devtools to read the original text and diagnose issues quickly.

Frequently Asked Questions

What is URL encoding?

URL encoding (also called percent-encoding) converts characters that are not allowed in URLs into a safe format using a percent sign followed by two hexadecimal digits, e.g. a space becomes %20.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and leaves characters like /, ?, & intact. encodeURIComponent encodes everything except letters, digits, and - _ . ~ — making it suitable for encoding individual parameter values.

Which function does this tool use?

This tool uses encodeURIComponent and decodeURIComponent, which are the right choice for encoding individual query parameter values or path segments.

Is my data sent to a server?

No. All encoding and decoding runs entirely in your browser using JavaScript. Nothing is transmitted to any server.

Why does my URL show %20 instead of a space?

%20 is the percent-encoded representation of a space character. Many HTTP servers and browsers also accept + as a space in query strings, but %20 is the standard and universally safe form.

Can I decode a full URL at once?

Yes. Paste any percent-encoded URL into the input, select Decode, and the tool will decode every encoded sequence back to its original character.