Bitmorfy

TOOL / DEVELOPER

URL Encoder

Encode text and query parameters into standard RFC 3986 percent-encoded URI strings for safe web transmission.

LOCAL CLIENT-SIDE·ZERO SERVER UPLOAD·MAX 20MB·.txt → .txt
Processed 100% in your browser. Your files are never uploaded to any server.
INPUT95 chars
OUTPUT

01 / WORKFLOW

How to use / URL Encoder

01

Paste your text

Paste the text or value you want to place in a URL, or load it from a file.

02

Check the output

The encoded version updates instantly as you type.

03

Copy or download

Copy the result to your clipboard or save it as a text file.

02 / CAPABILITIES

Key Features & Capabilities

Percent-encodes text with encodeURIComponent
Unicode and emoji are encoded as UTF-8 bytes
Live output as you type or paste
Copy the result or download it as a text file
Runs locally; nothing is sent to a server

03 / FORMAT

Supported Formats

Input Formats

.txt

Output Format

.txt

04 / REFERENCE

About this tool

Why URLs need encoding

URLs may only contain a limited set of ASCII characters, and some of those have a job: ? starts the query string, & separates parameters, = joins a name to its value and # starts the fragment. If a value you put in a URL contains one of these characters, it has to be percent-encoded, or the browser and server will read it as structure instead of data.

For example, encoding the value a b&c/d gives a%20b%26c%2Fd, which can safely be placed after ?q= in a link.

encodeURIComponent vs encodeURI

JavaScript offers two functions. encodeURI is meant for complete URLs and leaves characters such as /, ?, & and # alone. encodeURIComponent, used here, is meant for individual parts and encodes those characters too. Using the component version for values is the safe default.

Common mistakes

Encoding twice is the most frequent bug: a space becomes %20 and then %2520. Encode each value once, just before you insert it into the URL, and decode it once when you read it.

05 / FAQ

Frequently Asked Questions

Everything you need to know about using this tool. URL Encoder.

What does URL encoding do?
It replaces characters that are unsafe or have a special meaning in URLs with a % sign followed by two hexadecimal digits for each UTF-8 byte. For example, a space becomes %20, & becomes %26 and é becomes %C3%A9.
Should I encode a whole URL or only part of it?
Only the parts you insert into a URL, such as a query-string value or a path segment. This tool uses encodeURIComponent, which also encodes /, ?, & and #, so encoding a complete URL turns it into one long string. That is only what you want when the URL itself is a parameter value, for example in a redirect link.
Why does a space become %20 and not +?
%20 is the standard encoding for a space anywhere in a URL. A + only means a space in HTML form data (application/x-www-form-urlencoded). Most servers accept both in query strings, but %20 is always safe.
Which characters are left unchanged?
Letters A–Z and a–z, digits 0–9 and the characters - _ . ! ~ * ' ( ) are never encoded. Everything else is.
How are emoji and non-English text handled?
They are converted to UTF-8 first, so each character becomes several %XX groups. For example, ✓ becomes %E2%9C%93.
Is my data sent anywhere?
No. Everything runs locally in your browser; nothing you paste or upload is sent to a server.

Convert files online with a fast browser-first workflow. No account required for core tools.

Format Guides & Tutorials