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
- 1Choose "Component" for a single value, or "Full URL" if you're encoding an entire URL as one piece.
- 2Type or paste text.
- 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
- How to read JSON with a tree viewerA tree viewer turns a wall of brackets into a structure you can expand, search and copy paths from. Here's how to use one effectively.
- JSON parse errors explained: 'Unexpected token', 'Expected comma or brace', and the restWhat each common JSON error message actually means, the usual cause, and how to find the spot fast using line and column.
- How to format JSON (and actually understand the errors)JSON looks like a JavaScript object but follows stricter rules. Here's what those rules are and how to read the errors when they're broken.
Related tools
All developer toolsURL DecoderDecode percent-encoded URLs back to plain text — automatically unwraps multiple layers.Base64 EncoderEncode text to standard or URL-safe Base64.Slug GeneratorConvert text into clean, URL-friendly slugs, with an optional length limit.JSON Viewer & FormatterView, format, validate, edit and beautify JSON with an interactive tree view, plus a shareable link.
Ready to use URL Encoder?
URL Encoder