Text Tools

URL Encoder

Convert text, query parameters, and URLs into safe percent-encoded format. Supports Component (encodeURIComponent) and Complete URL (encodeURI) modes with instant live preview.

URL Encoder & Percent-Encoder

Encode special characters, spaces, and reserved symbols into percent-encoded format (such as %20, %26, %3D). Choose between component-level parameter encoding and complete-URL preservation.

Action: Standalone Decoder
Load Sample:
Raw Text / URL Input
Percent-Encoded URL Result
URL Encoding Configuration & Modes
0
Input Chars
Raw source length
0
Output Chars
Encoded URL length
0
Encoded Chars
Characters replaced
0
Percent Tokens
Total %XX sequences
0
Total Words
Input text words
0%
Size Ratio
Byte expansion
Component
Active Mode
Encoding scope
100% In-Browser Privacy

How to Use the Online URL Encoder

Follow these 6 simple steps to convert special characters, query strings, and complete links into safe percent-encoded URLs:

1
Enter Text or URL

Type or paste raw query parameter text, form data, or a full web address into the left input textarea. You can also upload a .txt file.

2
Choose Encoding Mode

Select Encode Component for individual parameter values (like name=John Doe) or Encode Complete URL to preserve https://, slashes, and question marks.

3
Select Space Style

Choose between standard %20 (RFC 3986, universal) or plus + (application/x-www-form-urlencoded, standard for query strings).

4
Configure RFC 3986 Standard

Select RFC 3986 Strict to also escape characters like !, ', (, ), and *, or choose Standard JavaScript encoding.

5
Inspect Live Output & Stats

Review the generated percent-encoded string in real time. The statistics grid displays exact character counts, percent tokens, and size expansion.

6
Copy or Download

Click Copy Result to paste your encoded URL into your API client, HTML tags, or web application, or download as a .txt file.

URL Reserved Characters & Percent-Encoding Reference Table

According to RFC 3986, characters are categorized as reserved (which have structural meaning in URIs) or unreserved. Here is how special characters encode:

Char Character Name Percent Code RFC 3986 Category Structural Purpose in URLs
(space) Space %20 or + Disallowed Character Separates words in parameter values
& Ampersand %26 Sub-component Delimiter Separates key-value pairs in query strings
= Equals Sign %3D Sub-component Delimiter Assigns value to a query parameter key
? Question Mark %3F Generic Delimiter Introduces the query string component
# Number Sign (Hash) %23 Generic Delimiter Introduces the anchor/fragment identifier
/ Forward Slash %2F Generic Delimiter Separates hierarchical path segments
: Colon %3A Generic Delimiter Separates protocol scheme and port numbers
% Percent Sign %25 Escape Indicator Prefix indicator for all percent-encoded bytes
+ Plus Sign %2B Sub-component Delimiter Interpreted as space in query strings; must be %2B for literal +
@ At Sign %40 Generic Delimiter Separates user info from hostname
$ Dollar Sign %24 Sub-component Delimiter Reserved parameter modifier
é Accented e (Latin-1) %C3%A9 Non-ASCII Unicode Multilingual UTF-8 two-byte sequence

When to Use encodeURIComponent() vs. encodeURI()

Encode URL Component
encodeURIComponent()

Use this mode when encoding an individual value destined to be part of a query string or path segment. It aggressively encodes all characters that have special syntactic meaning in a URL, including &, =, ?, /, :, and #.

Input: hello world & welcome
Output: hello%20world%20%26%20welcome
Correct Use Case: Constructing ?search="value" where the value contains symbols.
Encode Complete URL
encodeURI()

Use this mode when you have an entire URL string that already contains protocol schemes, domain names, query delimiters, and paths. It leaves structural separators (http://, /, ?, &, =, #) intact while encoding only spaces and non-ASCII characters.

Input: https://example.com/café?q=coffee & tea
Output: https://example.com/caf%C3%A9?q=coffee%20&%20tea
Correct Use Case: Cleaning up an existing complete link without destroying its parameter structure.
Security Note: URL Encoding is NOT Encryption URL percent-encoding is designed solely for transport safety over network protocols so that special characters are not misinterpreted by web servers, proxies, and browsers. It does not obfuscate or encrypt sensitive data. Never use URL encoding as a security measure to hide passwords, API secret keys, or confidential tokens.

100% Client-Side Privacy Guarantee

The PacesTools URL Encoder runs 100% inside your local web browser using native JavaScript. Your private URLs, internal enterprise links, query tokens, and personal parameters are never transmitted across the network, stored on external servers, or logged in any analytics.

All percent-encoding operations, regex character replacements, and text file downloads execute directly on your device's CPU. The tool is fully functional offline.

Zero Network Transmission & Zero Tracking Your links and data remain strictly private on your computer.
Technical Capabilities
  • Engine: Native ECMAScript URL Encoding Specification
  • Standards: Full RFC 3986 Strict Percent-Encoding support
  • Unicode: UTF-8 multibyte character sequences and emojis
  • Space Style: Configurable %20 or + form style
  • Performance: Instant live conversion for up to 500,000+ characters

Frequently Asked Questions

Everything you need to know about URL encoding, percent codes, and query strings:

URL encoding (formally known as percent-encoding) is a mechanism for converting characters into a format that can be safely transmitted over the Internet within a Uniform Resource Identifier (URI). Characters outside the safe ASCII set are converted into a percent sign followed by two hexadecimal digits representing their UTF-8 byte value (e.g. space becomes %20).

Spaces are prohibited in standard URLs because web protocols and browsers treat spaces as command delimiters. In standard RFC 3986 URLs, spaces are encoded as %20. In query strings formatted as application/x-www-form-urlencoded (such as web form submissions and search engines), spaces are commonly represented as a plus sign +.

encodeURI() is intended for complete URLs. It leaves protocol and query structural characters intact (http://, /, ?, &, =, #). In contrast, encodeURIComponent() is intended for single parameter values, encoding all reserved characters (including &, =, and /) so that values do not break the overall query string structure.

Standard JavaScript encodeURIComponent() leaves characters like !, ', (, ), and * unencoded. However, RFC 3986 strict standards recommend encoding these characters into %21, %27, %28, %29, and %2A to prevent unintended interpretation in shell commands or strict REST APIs. Our tool enables RFC 3986 strict encoding by default.

Yes. The tool fully supports UTF-8 multibyte encoding. Multilingual characters (such as Cyrillic, Arabic, Chinese, Japanese, and accented letters like é, ñ) as well as modern emojis (such as 🚀 or 😀) are correctly converted into their corresponding UTF-8 percent byte sequences (e.g. %F0%9F%9A%80 for 🚀).

As a best practice, you should only encode individual query parameter values using Component Mode. Encoding an entire URL using component mode will destroy the protocol slashes (https%3A%2F%2F) and parameter ampersands. If you need to clean up an entire pre-assembled link, use Complete URL Mode instead.

No. URL encoding is a public, reversible data representation format, not encryption. Anyone can decode percent-encoded strings using standard decoders or browser address bars. Never transmit sensitive secrets or passwords in URLs relying solely on URL encoding.

Yes. You can switch to the "Decode URL" mode at the top of the tool or use the "Swap" button to immediately reverse percent-encoded strings into plain readable text. You can also visit our standalone URL Decoder tool.

Yes. Click the "Copy Result" button to copy the encoded string to your clipboard with one click, or click "Download .txt" to save the result as a text file onto your computer.

Line breaks in multiline text inputs are represented as carriage returns and line feeds: \n becomes %0A, and \r\n becomes %0D%0A. You can toggle line break encoding in the configuration drawer.

No. All encoding and decoding operations execute entirely in your web browser on your local device. Nothing is sent to our servers, saved in databases, or logged in analytics.

Yes. The interface is fully responsive across all device sizes (from 320px smartphones to 4K desktop screens) with touch-optimized controls and stacked layouts.
Copied to clipboard!