Encode text to Base64.
Runs in your browser. Nothing you enter is uploaded.
Make JSON readable with clean indentation.
Check whether JSON is valid.
Remove whitespace from JSON.