Useful Hacks

URL Encoder

Percent-encode text for safe use in URLs, with a component vs. full-URL mode.

Processed locally in your browser. Nothing you enter is uploaded or stored.
  • Two explicit modes: "Component" escapes everything (like `encodeURIComponent`) for a single value going into a query string or path segment; "Full URL" leaves URL structure characters (`: / ? # & =`) unescaped (like `encodeURI`) for encoding a whole URL as one piece.
  • Prevents the common mistake of running a full URL through component-style encoding, which breaks it by escaping `://` and path separators.
  • Live output — paste and copy.
  • Runs in your browser; nothing is uploaded.

Why this is private

  • Processed locally in your browser. Nothing you enter is uploaded or stored.
  • Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
  • Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.

Overview

Percent-encodes special characters so text can be safely used inside a URL — with a mode toggle for whether you're encoding a single value/component or an entire already-assembled URL.

How to use it

  1. 1Choose "Component" for a single value, or "Full URL" if you're encoding an entire URL as one piece.
  2. 2Type or paste text.
  3. 3The encoded output updates instantly.

Examples

Encoding a query value (Component mode)

Input

hello world & more

Output

hello%20world%20%26%20more

Frequently asked questions

What people use it for

Build a query string by handUse Component mode to encode each value so `&`, `=`, spaces and `+` don't corrupt the parameters.
Put a URL inside another URLUse Component mode to encode a `redirect_uri` or `next` parameter so its own query doesn't merge with the outer one.
Encode a path segmentMake a slug or filename with spaces or slashes safe to drop into a path.
Encode an entire URL as a single unitUse Full URL mode to escape spaces and unsafe characters in a whole URL while keeping its `://`, `/` and `?` structure intact.
Fix a link that breaks on special charactersEncode the offending part rather than the whole URL.

Related guides

Related tools

All developer tools

Ready to use URL Encoder?

URL Encoder

Search tools

Search for any tool by name, category or keyword