Developer & Productivity Utility

URL Encoder & Decoder

Encode and decode URLs and URL components directly in your browser.

Mode:
Scope:
URI Component Mode: Uses native encodeURIComponent(). Encodes reserved characters (&, =, ?, :, /). Best for query parameters and individual URL segments.
18 chars · 18 B
Max recommended size: 250,000 chars
0 chars · 0 B
Processed locally in browser
Presets:

Query Parameter Helper

Quickly build and encode a safe key=value query pair.

encodeURI vs. encodeURIComponent: Which Should You Use?

JavaScript provides two native global encoding methods. Selecting the wrong one can either break URL syntax or fail to protect query strings against injection issues:

FeatureencodeURI() (Full URI)encodeURIComponent() (Component)
Primary PurposeEncodes an entire URL while preserving protocol and path structureEncodes a single component or query parameter value
Preserved CharactersA-Z a-z 0-9 ; , / ? : @ & = + $ - _ . ! ~ * ' ( ) #A-Z a-z 0-9 - _ . ! ~ * ' ( )
Reserved Delimiters Encoded?No (leaves :, /, ?, &, = intact)Yes (converts to %3A, %2F, %3F, %26, %3D)
Best ForWhole URLs containing spaces or international charactersUser inputs, query values, URL search params, path segments

Common URL Percent-Encoding Codes

The table below lists the most frequently encountered ASCII characters and their percent-encoded hexadecimal equivalents:

Space ( )
%20
Ampersand (&)
%26
Equals (=)
%3D
Question (?)
%3F
Slash (/)
%2F
Colon (:)
%3A
Hash (#)
%23
Percent (%)
%25
Plus (+)
%2B
At (@)
%40
Exclamation (!)
%21
Dollar ($)
%24
Client-Side Browser PrivacyYour text is processed directly in your browser and is not uploaded for encoding or decoding. No server-side processing scripts handle your input text, so your query strings and URLs remain in local browser memory while you use the tool.
Want a full reference on RFC 3986 percent-encoding and encodeURI vs encodeURIComponent?Read our complete URL encoding guide →

Frequently Asked Questions

Everything you need to know about URL encoding, percent encoding, and browser standards.

URL encoding (also known as percent-encoding) is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances. According to RFC 3986, characters that are reserved or not permitted in URLs (such as spaces, punctuation, non-ASCII characters, and symbols) are converted into a percent sign (%) followed by two hexadecimal digits representing the UTF-8 byte value.

Fast, browser-based utilities for developers, designers, and creators.

View all tools