Encode special characters for safe URL transmission, or decode percent-encoded strings back to readable text. Pure client-side, your data never leaves the browser.
URL encoding (also called percent encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, ampersands, question marks, and non-ASCII characters are replaced with percent-encoded equivalents (e.g., space becomes %20, & becomes %26). This is essential because URLs can only contain a limited set of ASCII characters. Without encoding, special characters in query parameters, form data, or path segments can break URL parsing or cause security issues. This tool uses JavaScript's built-in encodeURIComponent() and decodeURIComponent() functions, which handle the full Unicode character set including emojis and international characters. All processing happens in your browser — no data is sent to any server.
Select Encode to convert special characters to percent-encoded format, or Decode to convert percent-encoded strings back to readable text.
Paste a URL with special characters, a query string value, or any text. The output updates instantly as you type.
Click Copy to grab the encoded or decoded output for use in your URLs, API requests, or application code.
Pretty-print and validate JSON with 2 / 4 space indentation.
Convert JSON arrays to CSV format. Auto-detects columns, proper escaping, download as .csv.
Convert CSV data to a JSON array of objects. Handles quoted fields and commas.
Beautify messy HTML with proper indentation or minify it for production.
Minify HTML by stripping comments, collapsing whitespace. Shows size savings.
Beautify CSS with proper indentation or minify it for production. Strips comments.