URL Encoder

Broken API calls and redirect links often come down to unescaped characters. Encode query values with encodeURIComponent, preserve URL structure with encodeURI, or decode percent-encoded text — results update as you type with one-click copy.

  • Free to Use
  • No Signup
  • Privacy Friendly

How to URL-encode text

  1. 1

    Choose encode or decode

    Select Encode to escape special characters, or Decode to reverse percent-encoding like %20 back to spaces.

  2. 2

    Pick encoding mode

    Use Component for query parameter values (encodes / and ?). Use URI when encoding a full URL but keeping structure characters intact.

  3. 3

    Copy the output

    Paste into your API, form, or redirect. For binary data, pair with the Base64 encoder.

URL encoding explained

Percent-encoding replaces unsafe ASCII characters with %XX hex codes. Spaces become %20 (or + in form data).

  • encodeURIComponent — encodes query values and path segments
  • encodeURI — preserves URL structure characters like / and ?
  • decodeURIComponent — reverses percent-encoding

Example: hello worldhello%20world (component mode).

Why Use This Tool?

  • Both Directions

    Switch between encode and decode with one click.

  • Two Encoding Modes

    Component encoding for query values or full URI encoding.

  • Instant Copy

    Copy encoded or decoded output to paste into APIs and forms.

  • Browser-Based

    Your URLs never leave the device.

Frequently Asked Questions

What is the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes every reserved character including /, ?, and &. Use it for individual query values. encodeURI encodes only characters illegal in a full URL, preserving / and ? for structure.

When should I URL-encode query parameters?

Always encode values before appending to a URL — especially spaces, ampersands, equals signs, and non-ASCII characters like é or 中文.

How do I decode a percent-encoded string?

Switch to Decode mode and paste the encoded text. The tool runs decodeURIComponent, turning %20 into spaces and %C3%A9 into é.

Is URL encoding the same as Base64?

No. URL encoding (percent-encoding) makes text safe for URLs. Base64 represents binary data as ASCII. Use the Base64 encoder for files and tokens.

Is this URL encoder free?

Yes. Unlimited encode and decode with no signup; all processing runs locally in your browser.

URL Encoder — TetraKits

Clean URLs Without Manual Escaping

Developers debugging fetch URLs, marketers building UTM links, and anyone assembling query strings need reliable percent-encoding. One tool covers both encodeURIComponent and encodeURI rules — faster than guessing which characters need escaping.