URL & HTML Encoder
Encode & Decode URLs and HTML
🔗 URL Encoding
%20 = Space
%26 = &
%3D = =
%3F = ?
%2F = /
%C3%BC = ü (UTF-8)
📝 HTML Entities
< = <
> = >
& = &
" = "
= Space
€ = € (decimal)
How to Encode/Decode URLs and HTML
- Choose the encoding type: URL encoding or HTML entities
- Paste or type your text in the input field
- Click 'Encode' or 'Decode' to transform
- View the result with character breakdowns
- Copy the output for use in your code
Frequently Asked Questions
What is URL encoding?
URL encoding (percent-encoding) converts special characters to %XX format for safe transmission in URLs. For example, space becomes %20, & becomes %26.
What are HTML entities?
HTML entities represent special characters in HTML. For example, < becomes <, > becomes >, & becomes &. This prevents XSS attacks and display issues.
When should I URL encode?
URL encode when: passing data in query strings, creating links with special characters, or working with APIs. Characters like &, =, ?, and spaces must be encoded.
What's the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL (preserves :, /, ?, #). encodeURIComponent encodes everything, used for query parameter values. This tool supports both.
Why do I need to encode HTML?
HTML encoding prevents XSS (Cross-Site Scripting) attacks by converting < > & " to entities. User input displayed in HTML should always be encoded.
Category:
Developer Tools →Related Tools
Base64 Encoder / Decoder
Encode text or files to Base64, or decode Base64 back to its original form. Supports URL-safe Base64...
JSON Formatter & Validator
Format, validate, minify, and explore JSON data. Interactive tree view with syntax highlighting and ...
Cron Expression Generator
Build and understand cron expressions visually. Schedule tasks with human-readable explanations and ...