Tech News, Tech & Coding · Free Online Tools

IT Question Answer
Tools
Developer & Text ToolsFree100% Client-Side

URL Encoder / Decoder

Encode or decode URLs and query strings using percent-encoding, right in your browser.

100% privateRuns instantly in-browserUpdated regularly

Advertisement

Runs in your browser

Your input is processed on your device and is not uploaded to our servers.

Fast

No queues and no upload wait, so results appear as soon as you act.

Clean and simple

Dark mode, no popups, and no signup.

What you get

  • Toggle between encode and decode modes
  • Handles special characters and query strings
  • Graceful error handling for invalid input
  • One-click copy of output
  • No data sent to any server

What URL encoding is

A URL can safely contain only a limited set of characters. Spaces, accents, symbols such as & and #, and non-Latin letters have to be written as a percent sign followed by two hex digits. A space becomes %20 and an ampersand becomes %26. This is called percent-encoding or URL encoding.

This tool encodes text so it can sit safely inside a URL or query string, and decodes percent-encoded text back to readable form. It uses the same rules as encodeURIComponent and decodeURIComponent in JavaScript.

How to use it

  • Choose Encode or Decode.
  • Paste your text. The result updates as you type.
  • Copy the output, or use the switch to flip it back into the input.
  • If decoding fails, the tool tells you the text has an invalid percent sequence.

Characters and their encodings

Common characters and how they are encoded:

space   -> %20
&       -> %26
=       -> %3D
?       -> %3F
#       -> %23
/       -> %2F
+       -> %2B
é       -> %C3%A9

Common mistakes

  • Encoding a whole URL when you only meant to encode a value. Encode each query value, not the https:// part or the slashes.
  • Encoding twice. A value such as %2520 means the percent sign itself was encoded again.
  • Treating + as a space. In query strings + often means space, but in the path it is a plus. This tool encodes a space as %20.

Related tools

  • Base64 Encoder & Decoder: Encode and decode Base64 strings for APIs, data transfer, and debugging.
  • String Escape & Unescape Tool: Escape or unescape text for JSON, JavaScript, HTML, XML, SQL, CSV and regular expressions.
  • JWT Token Decoder: Decode JSON Web Tokens (JWT) locally in your browser. Inspect headers, payload, and signatures.
  • Slug Generator: Turn titles into clean URL slugs. Handles accents and symbols, with bulk lists and a max length.

Advertisement

Frequently asked questions

Encoding turns special characters into percent codes so they are safe in a URL. Decoding turns the codes back into the original characters.

The tool shows an error about an invalid percent-encoding sequence instead of output.

Usually you encode only the values, for example each query parameter. Encoding the whole URL would also encode the slashes and colon.

No. Encoding and decoding happen in your browser.

Spaces are not allowed in URLs. %20 is the hex code of the space character.