Open the JSON file in your Vim text editor: vim my-file.json python To prettify using python: :%!python -m json.tool jq To prettify using jq: :%!jq '.' site Copy the contents: :%y+ Paste and prettify using a site below: Online JavaScript Beautifier Prettier