URL Encoder

Your data never leaves your browser

Percent-encode a string for safe use in URLs and query parameters.

Brie — Bug Reporting Tool

Dealing with encoding issues in production?

Brie captures the full network request/response chain so you can see exactly where encoding breaks.

About URL Encoder

Convert any text to a percent-encoded (URL-encoded) string using encodeURIComponent. This ensures special characters like spaces, ampersands, and slashes are safely represented when embedded in a URL query string or path segment. Essential for building correct URLs in web applications.

How to use

  1. Paste or type the text you want to encode into the input panel.
  2. The URL-encoded result appears instantly in the output panel.
  3. Click Copy to copy the encoded string.

More Encoding / Decoding

Frequently Asked Questions

FAQs about URL Encoder

What is URL encoding?

URL encoding (percent encoding) replaces characters that are not allowed in a URL with a % followed by their hexadecimal code. For example, a space becomes %20.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL but leaves characters like /, ?, and # intact. encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ) — making it suitable for encoding individual query parameter values.

Why is + used for spaces sometimes?

In application/x-www-form-urlencoded format (HTML forms), spaces are encoded as +. In proper percent encoding, a space is %20. This tool uses %20 (encodeURIComponent standard).

Does this tool encode the full URL?

No. This tool encodes individual values for use as query parameters or path segments. To encode a full URL, only the query values and non-ASCII path segments should be encoded.

Is my data safe?

Yes. All encoding is done entirely in your browser. No data is transmitted to any server.