Searchlight
Tools
BlogAbout
Free SEO Audit
Back to home
๐Ÿ“ˆSEO & Analytics
๐Ÿ—‚๏ธText & Data
๐Ÿ”Encoders & Decoders
Base64 TextBase64 FileURL EncoderHTML EntitiesNumber Base ConverterJWT DecoderMorse CodeROT13 / Caesar CipherHash GeneratorHMAC GeneratorHex โ†” Base64
โšกGenerators
๐Ÿ”„Converters
๐Ÿ–ผ๏ธImage Tools
๐Ÿ“„PDF Tools
๐Ÿ’ปCode Tools
๐Ÿ”Regex & Parsing
๐ŸงฎCalculators
๐Ÿ—บ๏ธDiagrams
๐ŸŒNetwork & Web
โœ๏ธText Utilities
๐ŸŽจColor Tools
๐Ÿ”€Diff & Compare
156+ tools. OAuth is read-only.
Searchlight

156+ free SEO, developer, image, PDF, and productivity tools - no account needed.

Free ยท all tools included
Company
  • Blog
  • About
  • Free SEO Audit
Legal
  • Privacy Policy
  • Terms of Service
  • Cookie Policy

ยฉ 2026 Searchlight. All rights reserved.

Read-only OAuth ยท No data reselling ยท Completely free

URL Encoder / Decoder

Encode text for safe use in URLs, or decode percent-encoded strings back to readable text.

Uses encodeURIComponent - encodes all characters except letters, digits, and - _ . ! ~ * ' ( )

About this tool

Encode URLs and special characters to percent-encoded format (also called URL encoding or percent encoding) or decode percent-encoded strings back to plain text. URL encoding is required when passing special characters like spaces, &, =, and # in query parameters to prevent them from breaking URL parsing.

How to URL-Encode or Decode a String

  1. 1Paste your text or URL into the input field.
  2. 2The encoded output appears instantly - % characters replace unsafe characters.
  3. 3To decode, paste a percent-encoded string and the original text appears.
  4. 4Use 'Encode URI Component' mode for encoding individual query parameter values.
  5. 5Click 'Copy' to copy the encoded or decoded result.

Frequently Asked Questions

What is URL encoding?+
URL encoding replaces unsafe characters with a % followed by two hexadecimal digits. For example, a space becomes %20, & becomes %26, and = becomes %3D.
When should I URL-encode my data?+
Always encode values being placed in URL query parameters. This prevents characters like &, =, and # from being interpreted as URL structure rather than data.
What is the difference between encodeURI and encodeURIComponent?+
encodeURI encodes a full URL but leaves reserved characters (like /, ?, &, =) intact. encodeURIComponent encodes everything including reserved characters - use it for individual query parameter values.
Why does a space become %20 in some places and + in others?+
%20 is the standard URL encoding for a space per RFC 3986. The + sign for spaces is an older convention from HTML form encoding (application/x-www-form-urlencoded) and should only be used in that context.
When do I need to URL-encode my data?+
Always URL-encode values placed in query string parameters. Characters like &, =, #, ?, and spaces have special meaning in URLs. Encoding them as percent sequences prevents the server from misinterpreting your data as URL structure.
What is percent encoding and how does it work?+
Percent encoding (also called URL encoding) replaces each unsafe byte with a percent sign followed by two uppercase hexadecimal digits representing the byte value. The space character (byte 0x20) becomes %20, the ampersand (byte 0x26) becomes %26, and so on.
How do I encode spaces in a URL?+
Use %20 in path segments and query parameter values per RFC 3986. The + character is also used to represent spaces in application/x-www-form-urlencoded query strings (as submitted by HTML forms). Most modern frameworks handle this automatically, but manual encoding should use %20.
What are double encoding pitfalls in URL encoding?+
Double encoding happens when an already-encoded URL is encoded again - turning %20 into %2520. This breaks the URL and causes 404 errors or malformed parameter values. Always decode before re-encoding, and never encode a complete URL - only encode the individual parameter values.
Looking for a deeper guide on this topic? Browse the Searchlight blog.
Visit the blog โ†’

Related tools

View all Encoders & Decoders โ†’
Base64 TextEncode & decode Base64 textBase64 FileEncode images, PDFs & files to Base64HTML EntitiesHTML entity encode & decodeNumber Base ConverterBinary / octal / decimal / hex converter