I would like a notepad for Mac OS that pretty prints JSON and XML copied from a server console, just like notepad++ did on pc with JSON and XML plugins.

2 Answers 2


Have a look at Atom. It provides XML and JSON syntax highlighting.

Atom displaying a XML file

On the lower right corner click on Plain text if auto-detection does not work (e.g. when copying example XML into the editor) and select XML or JSON.

  • I tried atom but if the text I copy is in 1 line, it doesn't pretty print it in multiple lines like notepad++ plugins.
    – papakias
    Mar 27, 2017 at 21:27
  • 2
    Install the plugin atom-beautify for source beautifying (apm install atom-beautify). It takes code that is in one line and makes several lines with proper indentation. Is this what you want?
    – Michael S.
    Mar 28, 2017 at 13:28
  • 1
    that is exactly what i want!
    – papakias
    Mar 28, 2017 at 15:32

CudaText works on macOS, and it has plugins for pretty printing of JSON and XML. They are named JSON Format, and XML Format. Install them via Plugins / Addon Manager.

To enable plugins, you must install Python engine from python.org.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.