JSON URL Encode
Percent-encode a JSON document so it survives a query string or a form field. Every reserved character is encoded once.
What URL-encoding JSON does
Every byte that is not an unreserved character is percent-encoded, so braces, quotes, colons and commas are all sent as escapes and the value survives a query string, a form field, or a header that would otherwise split on them. The encoding is done on the text you pasted, not on a re-serialised document, so the exact bytes you tested are the bytes that arrive. Decode with the matching page to confirm the round-trip.
How to use it
JSON URL Encode: paste the JSON into the box above, and press Run to get the URL-encoded text below.
Worked example
Input:
{"q":"ada lovelace","page":2}
Output:
%7B%22q%22%3A%22ada%20lovelace%22%2C%22page%22%3A2%7D
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns URL-encoded text; reloading the page discards both.
Every byte that is not an unreserved character is percent-encoded, so braces, quotes, colons and commas are all sent as escapes and the value survives a query string, a form field, or a header that would otherwise split on them. The encoding is done on the text you pasted, not on a re-serialised document, so the exact bytes you tested are the bytes that arrive. Decode with the matching page to confirm the round-trip.
Percent-encode a JSON document so it survives a query string or a form field. Every reserved character is encoded once.
How to use it
JSON URL Encode: paste the JSON into the box above, and press Run to get the URL-encoded text below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads JSON and returns URL-encoded text; reloading the page discards both.
What to Expect
Best for
- Converting JSON to URL-encoded text when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
{"q":"ada lovelace","page":2}
Sample output
%7B%22q%22%3A%22ada%20lovelace%22%2C%22page%22%3A2%7D
Frequently asked questions
How do I use the json url encode?
JSON URL Encode: paste the JSON into the box above, and press Run to get the URL-encoded text below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.