Free URL Encoder
Spaces, ampersands and emoji break URLs — percent-encoding fixes them. The URL Encoder converts any text into URL-safe form with three modes: component encoding for query values, full-URL encoding that preserves :/?#, and form encoding where spaces become +. Paste once, copy the safe result, and never debug a broken link again.
How to Use the URL Encoder
- Choose the encoding mode for your use case.
- Paste your text or URL into the input box.
- The encoded result appears live.
- Click Copy to use it in your link, form, or code.
Features
Three encoding modes; live encoding; Unicode-safe; copy button.
Benefits & Use Cases
Build query strings by hand, safely include user input in links, prepare redirect URLs, or encode filenames with special characters for download links.
Tips
Encode the value, not the whole URL, when building query strings — encoding ? and & breaks parameter separation. That is what the component mode is for.
Frequently Asked Questions
What is percent-encoding?
It is the mechanism that represents unsafe characters in URLs as % followed by two hex digits — e.g. a space becomes %20. It keeps URLs valid when they contain reserved or non-ASCII characters.
Which mode should I use?
Use component mode for individual query values, full-URL mode when encoding an entire URL while keeping its structure, and form mode when mimicking HTML form submissions (spaces as +).
Why not encode the entire URL always?
Because encoding reserved characters like ? and & changes the URL meaning — parameters would merge into one value. Encode values; leave structure alone.
Do I need to encode Unicode characters?
Yes for maximum compatibility. Modern browsers display them nicely, but servers, proxies, and older clients expect percent-encoded UTF-8.
Related Tools
URL Decoder
Decode percent-encoded URLs free with NToolHub. Restore readable text from %20-style encoding instantly — 100% in your browser, nothing uploaded.
Open tool →Base64 Encoder
Encode text or files to Base64 free with NToolHub. Unicode-safe with URL-safe output and MIME line-wrap options — runs 100% in your browser.
Open tool →HTML Encoder
Escape HTML special characters free with NToolHub. Convert code to safe entities for display — live encoding, 100% in your browser, nothing uploaded.
Open tool →Hex Encoder
Convert text to hexadecimal free with NToolHub. Unicode-safe with uppercase, separator and 0x-prefix options — 100% in your browser, nothing uploaded.
Open tool →JWT Generator
Generate unsigned test JWTs instantly with NToolHub’s free tool. Custom header and payload, live decode preview — test-only, private.
Open tool →