— Encoders & generators

URL Encoder / Decoder

Percent-encode text for safe use in URLs and query strings, or decode an encoded URL back to readable text — live, in your browser.

— What it does

The URL Encoder / Decoder is a free tool that converts text to and from URL-safe percent-encoding. It uses encodeURIComponent to escape characters like spaces, ampersands, and slashes for query parameters, offers full-URL encoding when you only want to escape unsafe characters, and decodes any percent-encoded string back to plain text. Everything runs locally — nothing you type is uploaded.

  • Encode with encodeURIComponent for query values, or encodeURI to keep URL structure intact.
  • Decode percent-encoded strings like %20 and %3D back to readable characters.
  • Live conversion as you type, with one-click copy of the result.
  • Runs entirely in your browser — nothing you paste is ever uploaded to a server.

How to use it

1

Choose encode or decode

Use the Encode / Decode toggle to set the direction you want to convert.

2

Paste your text or URL

Type or paste the value into the input. When encoding, pick component-style or full-URL encoding.

3

Copy the result

The output updates instantly. Copy the encoded or decoded string to your clipboard.

Frequently asked

When should I use encodeURIComponent vs encodeURI?
Use component encoding (encodeURIComponent) for individual query-string values, since it escapes characters like &, =, /, and ? that would otherwise break the query. Use full-URL encoding (encodeURI) when you have a complete URL and only want to escape spaces and other unsafe characters while preserving the URL structure.
Why does decoding fail with an error?
Decoding throws a URI malformed error when the input contains an invalid percent sequence, such as a lone % sign or %ZZ. Check that every % is followed by two valid hexadecimal digits, then try again.
What does %20 mean?
%20 is the percent-encoded form of a space character. Percent-encoding replaces unsafe characters with a % followed by their two-digit hexadecimal byte value, so a space (byte 0x20) becomes %20.
Is my data uploaded anywhere?
No. All encoding and decoding happens locally in your browser with JavaScript. Nothing you type is sent to a server or stored, so it is safe for URLs containing tokens or sensitive parameters.
— Built by saavos

These tools are free. So is the first version of your agent.

saavos is the AI agent that lives on your website — themed to match your design, answering visitors from your own content, and telling you what they actually want to know. Paste your URL and see it answer, before you install anything.

Make my site feel alive