Encoding
URL Encoder and Decoder
Percent-encode or decode a string the way query parameters need. Full URL parsing is a different job.
This tool can receive sensitive values. Processing stays in your browser. Do not paste production secrets, private keys, or live access tokens. DevToolMage does not upload or log the input.
Uses encodeURIComponent / decodeURIComponent semantics.
How it works
Uses the browser encodeURIComponent and decodeURIComponent functions. Malformed escape sequences return an error.
Input and output
Input is a string. Output is the encoded or decoded string.
Examples
Query value
hello world & more becomes hello%20world%20%26%20more.
Unicode
東京 encodes to percent-encoded UTF-8 bytes.
How to use this tool
- Paste the component or encoded string.
- Choose encode or decode.
- Copy the result.
Limitations
- Does not validate that a string is a legal URL.
- Does not rewrite schemes, hosts, or relative paths.
- URLs can contain secrets in query strings. Treat them as sensitive.
Questions
Is this encodeURI or encodeURIComponent?
Component mode uses encodeURIComponent / decodeURIComponent. That is the usual choice for query values.
Will this parse host, path, and query?
No. This page encodes or decodes a string. It does not split a URL into parts.
Related tools
Encoding
Base64 Encoder and Decoder
Convert text to Base64 or back again, with a URL-safe option. Base64 hides nothing; anyone can decode it.
Tokens
JWT Decoder
Read the header and payload of a compact JWT. Decoding is not verification. A decoded token is not proven authentic.
Patterns
Regex Tester
Run a JavaScript RegExp against sample text and inspect matches and groups. It is not a multi-engine debugger.