Skip to content
Devlar

Runs in your browser. Your input stays on your device.

URL Encoder and Decoder

Percent-encode text so it is safe to put in a URL, or decode %XX sequences back into readable text. Decoding a complete URL also shows its parts and query parameters.

Mode
What are you encoding?

Opens a file from your device. The file is read in your browser and is not uploaded.

0 characters · 0 B

0 characters · 0 B

Privacy: This tool runs in your browser. Your input is processed on your device and is never uploaded to a server.

How to use

  1. Choose Encode to percent-encode text, or Decode to turn %XX sequences back into readable text.
  2. When encoding, pick Component for a single value such as a query parameter, or Full URL for a complete address.
  3. When decoding form data or query strings where spaces were written as +, turn on Treat + as a space.
  4. Type or paste your text, or open a text file. Short input updates as you type; for long input select Encode text or Decode text, or press Ctrl+Enter (Cmd+Enter on a Mac) anywhere in the tool, not only in the input box.
  5. Copy or download the result. When you decode a complete URL, a table below lists its protocol, host, path, and every query parameter.

Example

A query value encoded in Component mode. Note that &, =, %, and ? are all escaped.

Input
café & crème brûlée = 100% delicious?
Output
caf%C3%A9%20%26%20cr%C3%A8me%20br%C3%BBl%C3%A9e%20%3D%20100%25%20delicious%3F

Frequently asked questions

When should I use Component and when Full URL?

Use Component for one piece that goes inside a URL, such as a search term or a query parameter value. It escapes &, =, ?, /, and #, so the value cannot break the URL around it. Use Full URL when you already have a complete address that contains spaces or non-English characters and you want it to stay a working URL, with its slashes, question mark, and ampersands left alone.

Why are spaces sometimes + and sometimes %20?

HTML forms sent as application/x-www-form-urlencoded write spaces as +. Everywhere else in a URL, + is a literal plus sign and a space is %20. Turn on Treat + as a space only when decoding form submissions or query strings produced that way; otherwise a real plus sign would turn into a space.

What does "malformed percent sequence" mean?

Every % in an encoded URL must be followed by two hexadecimal digits, and the bytes those digits spell out must form valid UTF-8. A lone % (as in "50% off"), something like %G1, or a multi-byte character cut short, such as %E2%82, cannot be decoded. The error gives the position so you can fix it; a literal percent sign is written %25.

How are non-English characters encoded?

Each character is converted to its UTF-8 bytes, and every byte is written as % followed by two hex digits. For example, é becomes %C3%A9 and the Chinese character 你 becomes %E4%BD%A0. Decoding reverses the process exactly.

Base64 Encoder and Decoder

Encode text or any file to Base64 and decode it back, with full UTF-8 support, URL-safe output, and data URIs.

JWT Decoder

Decode JSON Web Tokens in your browser: header, payload, and claims with expiry times, plus warnings for risky tokens.

Keyboard shortcuts

Run the tool, from anywhere in it
Ctrl+Enter
Show this list (outside text fields)
?
Close this list
Esc