HomeDevBoxURL Encoder & Decoder
DevBox

URL Encoder & Decoder

Encode and decode URLs free online.

URL Encoder & Decoder

Encoded result

How to use this tool
1

Paste your text

Drop a URL, query string or any text into the box — or switch to the Decode tab.

2

Encode or decode

Hit the big button (or just type — it converts live) using full encodeURIComponent rules.

3

Copy the result

One click copies the output. Start over anytime with a clean slate.

Share this tool WhatsApp Facebook X Telegram LinkedIn

Frequently asked questions

What is URL encoding?

URL encoding (percent-encoding) converts characters that aren't allowed in a URL — like spaces, ñ or emoji — into a % followed by two hex digits, e.g. a space becomes %20. It's required by the URL standard.

When should I encode vs decode?

Encode when you're putting user text into a URL, e.g. a search query in a link. Decode when you receive a URL with % sequences and want to read the original text.

What's the difference between encodeURI and encodeURIComponent?

This tool uses encodeURIComponent, which encodes every special character including / ? & =. That's what you want for encoding a single value (like a query parameter). encodeURI is for whole URLs and leaves those separators intact.

Is my text sent anywhere?

No. Encoding and decoding happen entirely in your browser with JavaScript. Nothing you type ever leaves your device.

Why did decoding fail?

decodeURIComponent needs well-formed input — every % must be followed by two hex digits. A lone % or a truncated sequence at the end will fail; fix the input and try again.

About URL Encoder & Decoder

The URL encoder and decoder escapes text for use inside a URL component and reverses valid percent-encoded strings. It is useful when preparing query parameter values that contain spaces, ampersands or other reserved characters. Choose Encode or Decode and enter the source text. The conversion follows encodeURIComponent rules, so encoding a whole address also escapes its separators. Review whether you need to encode a parameter or an entire URL before copying the output.

How to use URL Encoder & Decoder

  1. Paste your text — Drop a URL, query string or any text into the box — or switch to the Decode tab.
  2. Encode or decode — Hit the big button (or just type — it converts live) using full encodeURIComponent rules.
  3. Copy the result — One click copies the output. Start over anytime with a clean slate.

Key features

Related developer tools

Explore DevBox · Privacy policy · Contact us