Mask and Shorten JSON Before Pasting Into AI
Replace emails, tokens and card numbers with placeholders, shorten big arrays, then restore the real values in the AI's reply. Runs in your browser.
Prepare for AI tool
Runs entirely in your browser. Nothing you paste is uploaded or stored.
Limits: JSON input only. Numbers longer than 15 digits can lose precision. Restored values are inserted as plain text, so check them if the reply is code.
Found a problem or have an idea for this tool? Send feedback.
About this tool
Paste a JSON payload and get a Markdown prompt you can review before pasting it into an AI tool. Emails, phone numbers, tokens, passwords, account fields and card numbers are replaced with placeholders such as EMAIL_1, and long arrays and strings are shortened so the prompt stays small.
The same value always gets the same placeholder, so the AI can still see that two fields belong to the same user. When the AI answers, paste its reply back in and the placeholders are swapped for your real values, all in your browser.
How to use it
- Paste a JSON payload, and optionally what you are trying to do and your question.
- Choose how many array items to keep and how long strings may be.
- Read the preview and the change report, then copy the prompt.
- Paste the AI's reply into the restore box to get your real values back.
Limitations
- JSON input only. Use the log extractor first for log lines.
- Not a compliance or anonymisation tool.
- Numbers longer than 15 digits can lose precision.
Example
{"orderId":1001,"customer":{"email":"[email protected]","phone":"639171234567"},"items":[{"sku":"A"},{"sku":"B"},{"sku":"C"}],"error":"Card 4111 1111 1111 1111 was declined for [email protected]"}{
"orderId": 1001,
"customer": {
"email": "EMAIL_1",
"phone": "PHONE_1"
},
"items": [
{
"sku": "A"
},
{
"sku": "B"
},
"(1 more item omitted)"
],
"error": "Card CARD_1 was declined for EMAIL_1"
}Common use cases
Debugging a failed API call
Ask an AI why a response looks wrong without pasting real customer data.
Shortening a large response
Keep the first items of a long list so the prompt fits and costs less.
Sharing a payload in a ticket or chat
Replace personal values first, and keep a local way to put them back.