Percent-encoding converts special characters for safe URL transmission. Spaces, ampersands, and non-ASCII characters get replaced with % followed by hex values. Space becomes %20, & becomes %26.
Encodes all special characters including : / ? # [ ] @ ! $ & ' ( ) * + , ; =
Preserves URL-valid characters like : / ? # [ ] @ ! $ & ' ( ) * + , ; =
Type or paste URL or text to instantly encode. The tool displays both encodeURIComponent (for query parameters) and encodeURI (for full URLs) results. Switch to decode mode to restore readable text. Includes a reference table of common character encodings.
Build API URLs with query parameters. Create shareable links with user content. Encode OAuth redirect URLs. Fix malformed URLs. Pass special characters through GET requests.
Follows RFC 3986. Replaces unsafe characters with % plus two hex digits of UTF-8 byte value. Space = %20, ü = %C3%BC. Displays both encodeURIComponent (preserves only A-Z, a-z, 0-9, - _ . ~) and encodeURI (preserves URL-valid characters like : / ? # @ !) outputs.
Percent-encoding replaces unsafe characters with '%' plus two hex digits. Space becomes %20, & becomes %26.
URLs only support limited ASCII. Spaces, quotes, and non-Latin characters must be encoded for correct parsing.
encodeURI() keeps :, /, ?, # intact for full URLs. encodeURIComponent() encodes everything except letters, digits, and - _ . ~ for query values.
Use encodeURIComponent('text') for parameters or encodeURI('https://...') for complete URLs.
Convert text to Base64 or decode Base64 strings back to readable text. Works offline.
Escape strings for JSON and JavaScript. Convert special characters to safe escape sequences like \n, \t, \u00A9.
Parse URLs into components: protocol, host, path, query, hash
Transform, format, generate, and encode data instantly. Private, fast, and always free.
Browse All Tools