URL encode / decode
Paste or drop your data here, or open a file.
New to Bracely?
Everything stays in your browser.
Output appears here
Paste or open your data in the input box. It never leaves your browser.
URL Encode and Decode
Make text or JSON safe to put in a URL, or turn %-encoded text back into plain text.
Example: JSON as a query parameter
Some APIs take a JSON filter in the URL, such as ?filter=. Encode the JSON first, or its quotes, braces and spaces break the link. The JSON is minified before encoding, so the URL stays short:
Input
{
"q": "red shoes",
"size": [
8,
9
],
"sort": "price desc"
}Output
%7B%22q%22%3A%22red%20shoes%22%2C%22size%22%3A%5B8%2C9%5D%2C%22sort%22%3A%22price%20desc%22%7D
How do I use the URL encode / decode?
- Paste text or JSON.
- Choose Encode or Decode.
- Copy the result.
What does the URL encode / decode do?
- Both directions
- UTF-8 safe
- Works with JSON in query parameters
When to use the URL encode / decode
A URL can only carry a small set of characters. Spaces, &, =, ?, #, quotes and anything outside ASCII have to be written as % codes, or the link breaks or means something else: an & inside a value starts a new parameter, and a # cuts the rest of the URL off. Encode a value before you put it in a query string, a redirect_uri or a link in an email.
Encoding works like JavaScript's encodeURIComponent, with text read as UTF-8, so é becomes %C3%A9. JSON is minified first. Decoding reads % codes and also turns + into a space, the way form data is sent, while %2B stays a real +. Each run decodes one layer, so a value that was encoded twice (%2520) needs a second run.
Frequently asked questions
- Why is my + turning into a space?
- In query strings and form data a + means a space. If you need a real plus sign, it has to be encoded as %2B; Bracely's encoder always does that.
- What does "a broken % sequence" mean?
- A % must be followed by two hex digits. Text like 100% or a cut-off %E0 can't be decoded; encode a literal % as %25.
- Should I encode the whole URL?
- No, only the values you put into it. Encoding the whole URL also encodes its :// and / and ? characters, and the link stops working.
- Can I convert URL parameters to JSON?
- Yes. The JSON ⇄ Query string tool reads a URL's parameters as JSON.
- Is my data uploaded?
- No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.
More JSON tools
Bracely has 108 JSON tools in one page. Related ones:
- HTML entity encoder
- GZIP decompress
- JSON Stringify
- Slug generator
- QR code generator
- Webhook signature
- JSON to Base64
- Protobuf decoder
- JWT Decoder
- JSON Escape
- Base64 to JSON
- Certificate decoder
- Unescape JSON
- Encrypt text
- Key pair generator
- OpenAPI response validator
- Swagger response validator
- JSON Formatter
- JSON Validator
- JSON Viewer
- JSON Repair
- JSON Diff
- JSON to YAML
- JSON to CSV
- jq Playground
Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram