URL Encoder/Decoder
Percent-encode and decode URLs. Safely escape query parameters, path segments, or full URLs to ensure they are valid and won't break during browser routing or API requests.
Input0 ln / 0 ch
Output
ready
local / nothing uploadedAbout this tool
The URL Encoder and Decoder safely escapes and unescapes special characters in URLs. This ensures that spaces, ampersands, and unicode characters do not break your query parameters or API requests.
How to use it
- Paste your URL or text.
- Click Encode Component, Encode URI, or Decode.
- Copy the formatted result.
Examples
Encoding a space
hello world
hello%20world
Limits and notes
- encodeURIComponent encodes all structural characters.
- encodeURI preserves structural characters like /.
Frequently asked questions
- What is %20?
- It is the percent-encoded representation of a space.
- Why do I get errors decoding?
- You may have an invalid percent sequence, like a stray % symbol.
Want the details? Read the full guide: The Double-Encoding Bug You Will Hit Eventually.
Related Tools
Base64 Encoder/DecoderEncode and decode Base64 strings safely. Supports full UTF-8 characters, emojis, and binary data. Ideal for debugging data URLs or API authentication headers.
JWT DecoderDecode JSON Web Tokens to inspect the header and payload. Debug authentication flows, check expiration times, and view user roles without verifying the signature.
JWT SignerCreate a signed JSON Web Token with HMAC SHA-256, SHA-384 or SHA-512. Encode the header and payload and sign it from a secret, entirely in your browser.
Env ValidatorCheck a .env file for duplicate keys, unclosed quotes, unquoted spaces and placeholder secrets before they break a deploy. Reports the line number of each problem.
JSON ValidatorValidate JSON syntax with detailed error messages. Catch trailing commas, missing brackets, and syntax errors instantly before sending payloads to your API.
JSON FormatterBeautify, validate, minify, and view JSON. Format messy API responses into readable code or compress it to save bandwidth, running safely in your browser.
JSON MinifierCompress JSON to a single line. Remove all unnecessary whitespace and line breaks to reduce payload size for production APIs without altering the underlying data.
JSON ViewerView JSON in an interactive, collapsible tree structure. Easily navigate massive API responses, expand specific nodes, and inspect deeply nested objects or arrays.