⚡
usefultools.dev
%20

URL Encoder / Decoder (Percent-Encoding)

NEW

URL encoder and decoder with three modes: encodeURIComponent, encodeURI and form encoding (+ for space). Finds malformed % escapes. Free, in your browser.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

encodeURIComponent: for one query value or path segment; encodes / ? & = # too.

Encoded (80 chars)
https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dcaf%C3%A9%20%26%20cr%C3%A8me%26page%3D2

Characters that changed

CharCode pointEncodedCount
/U+002F%2F3
=U+003D%3D2
␠space (U+0020)%202
&U+0026%262
:U+003A%3A1
?U+003F%3F1
éU+00E9%C3%A91
èU+00E8%C3%A81
⚡

Quick Examples

Typical inputs and the results this tool produces.

Component
a&b=c d
a%26b%3Dc%20d
Form
Tom's café
Tom%27s+caf%C3%A9
Full URL
https://x.io/a b?q=ü
https://x.io/a%20b?q=%C3%BC
Decode
caf%C3%A9%20au%20lait
café au lait
Form decode
red+shoes%21
red shoes!
📖

Overview

URLs may only contain a limited set of ASCII characters, so spaces, accents, emoji and characters with a special meaning such as & or = have to be written as percent-encoded UTF-8 bytes. This URL encoder and decoder converts text both ways and lets you pick the exact rule your code uses: encodeURIComponent for a single value, encodeURI for a complete URL, or HTML form encoding where a space becomes a plus sign.

Developers use it to build query strings by hand, debug double-encoded links, read tracking parameters or check what a server will receive. When decoding fails, the tool points to the line and column of the broken escape, such as a stray % or an invalid UTF-8 byte. A table lists every character that was changed and how often.

All encoding and decoding runs locally in your browser; nothing you paste is uploaded.

Why use this tool?

  • Pick the mode that matches your code
  • See exactly where a malformed % escape sits
  • Encode or decode many lines at once
  • Table of every character that changed
  • Private: runs entirely in your browser
⭐

Features

🔀

Three encoding modes

Component, full URL and form (+ for space) follow the same rules as encodeURIComponent, encodeURI and URLSearchParams.

🎯

Precise error position

A malformed escape or invalid UTF-8 sequence is reported with its line and column.

📄

Line-by-line option

Encode or decode a list of values while keeping one result per line.

🔍

Changed characters table

Each changed character is listed with its code point, encoded form and count.

🔁

Swap direction

Send the result back as input to check that encoding round-trips.

🛠️

How to Use

1

Choose Encode or Decode

Pick the direction with the toggle above the input.

2

Pick a mode

Component for one value, Full URL for a whole link, Form (+) for form data.

3

Paste your text

The result and the changed-characters table update as you type.

4

Copy the result

Use Copy, or swap to run the output back the other way.

🤔

Frequently Asked Questions