URL

URL Encoder

Percent-encode URLs and query strings, component or full-URI mode.

url-encoder.tool
0 chars
Result will appear here
Nothing you paste here is ever sent to a server - conversion happens locally in your browser.
Overview

What is a url encoder?

This tool percent-encodes (URL-encodes) text so it can be safely used inside a URL. It supports both encodeURIComponent-style encoding (for individual query values) and encodeURI-style encoding (for full URLs, which leaves structural characters like :/?# untouched).

Quick start

How to use this tool

  1. 1Pick Component (for a query parameter value) or Full URI (for an entire URL).
  2. 2Type or paste your text - the encoded result appears instantly.
  3. 3Use Swap to flip to decode mode using the current output as the new input.
  4. 4Copy the result.
Where it helps

Common use cases

Encoding a search query or parameter value before adding it to a URL
Preparing a redirect URL that itself contains another full URL as a parameter
Encoding text with spaces or special characters for a query string
Building a share link that includes user-provided text safely
Good to know

Frequently asked questions

What's the difference between Component and Full URI mode?

Component mode (encodeURIComponent) escapes every reserved character, including / and :, which is correct when encoding a single value that will be placed inside a URL. Full URI mode (encodeURI) leaves URL-structure characters like :/?# alone, since you're encoding an entire URL, not a piece of one.

How are spaces encoded?

As %20, matching standard URL encoding - not the older + convention used specifically in HTML form submissions.

Should I always use Component mode for query parameters?

Yes - if you're inserting a single value into a query string (like a search term), Component mode is almost always correct, since it won't accidentally leave characters unescaped that would break the URL structure.

Is my data sent anywhere?

No - encoding happens entirely in your browser using built-in JavaScript functions.

quick_facts.json

{

"runs_in_browser": true,

"data_sent_to_server": false,

"signup_required": false,

"price": "free",

"category": "Encoding"

}

Related tools

B64
No signup
Base64 Encoder

Encode text to Base64, with correct Unicode handling.

Open tool
B64
No signup
Base64 Decoder

Decode Base64 back to readable text, with correct Unicode handling.

Open tool
URL
No signup
URL Decoder

Decode percent-encoded URLs and query strings back to readable text.

Open tool