🔗

URL Encode / Decode

Encode or decode URL strings instantly. Supports component-level and full URL encoding. Everything runs in your browser · no server, no tracking.

Developer Tools Runs locally No data sent
encodeURIComponent decodeURIComponent client-side only no tracking
Encoding scope:
Plain Text
->
URL Encoded
💡
Component encoding uses encodeURIComponent · encodes all special characters including / ? # & =, ideal for query parameter values. Full URI encoding uses encodeURI · preserves characters that are valid in a complete URL like / ? # & =, ideal for encoding a whole URL.

What is URL Encoding?

URL encoding converts reserved or unsafe characters into percent-encoded sequences so they can be transmitted safely inside URLs. It is commonly used for query strings, path segments, redirects, and parameters that include spaces or special characters.

Why Use This URL Encoder / Decoder?

When building or debugging URLs, manually counting percent-encoded characters is error-prone. This tool encodes or decodes instantly in your browser - no form submission, no server round-trip. It also distinguishes between encodeURI (whole URL) and encodeURIComponent (single parameter) semantics, which most simple encoders do not.

  • Instant output: Results appear as you type, no button press needed.
  • Full URL support: Paste an entire URL and decode all percent-encoded segments at once.
  • No server round-trip: Encoding and decoding happen locally in the browser.
  • Developer-friendly: Useful for debugging query strings, redirect URIs, and API parameters.

How to Use URL Encoder / Decoder

  1. Paste the URL string or parameter you want to transform.
  2. Choose encode when preparing a string for use in a URL, or decode when inspecting percent-encoded text.
  3. Use the result in query strings, redirects, API requests, or debugging work.
  4. Copy the transformed value into your target app or request.
Understand URL Encoder / Decoder ▾
Example
Input hello world & more=yes
Output hello%20world%20%26%20more%3Dyes
Common Use Cases
  • Encode query string parameters before appending to a URL
  • Decode percent-encoded URLs from log files
  • Fix double-encoded URLs
Why Use This Tool
  • Prevents broken URLs caused by spaces and reserved characters.
  • Useful for debugging redirects, query strings, and encoded API payloads.
  • Lets you quickly compare raw and encoded values in the browser.
Frequently Asked Questions
What is the difference between encodeURI and encodeURIComponent?

encodeURI is for whole URLs and leaves separators like :, /, ?, and # intact. encodeURIComponent is for individual parts such as query values and encodes far more characters.

Why is a space encoded as %20 or +?

%20 is standard percent-encoding. + is mainly used by application/x-www-form-urlencoded form submissions. This tool outputs %20 by default.

Can I decode a full URL at once?

Yes. Paste the full URL and decode it to inspect all percent-encoded parts at once.

What is application/x-www-form-urlencoded?

It is the encoding format used by HTML form submissions, where spaces may be represented as +. For general URL components, %20 is the safer standard form.