How to Format XML and Fix Well-Formedness Errors
Learn how to format XML and fix well-formedness errors: unclosed tags, nbsp, bad attributes. Tested against libxml2 on 42,145 documents.
JSON, CSV, YAML, XML, SQL and Markdown each have their own rules and their own ways to break. These guides show how to read, format, convert and repair them, explain the errors you are most likely to see, and link to tools that do the work in your browser.
Learn how to format XML and fix well-formedness errors: unclosed tags, nbsp, bad attributes. Tested against libxml2 on 42,145 documents.
Learn how to convert JSON to TypeScript interfaces: nested objects, optional keys, unions and arrays. Checked with the compiler on 2,000 documents.
Learn how to format SQL: clause layout, keyword case and why the dialect matters. Tested on 1,434 queries against SQLite bytecode, with no change in meaning.
Learn how to convert YAML to JSON in a browser, Python, JavaScript or yq, and what changes on the way: yes and no, anchors, comments and big numbers.
Learn how to convert HTML to Markdown: what each tag becomes, why regex converters break lists and tables, and what Markdown can't keep. Tested on 2,000 pages.
How to convert CSV to JSON: read quoted fields correctly, keep zip codes and IDs intact and handle uneven rows, tested in JavaScript, Python and pandas.
Markdown to HTML explained: the CommonMark rules, what GitHub adds, and the mistakes simple converters make, tested on all 652 official examples.
Fix a JSON parse error: 15 causes with the real error messages from Node 24 and Python 3.14, plus what valid JSON can still get wrong.
How to convert JSON to CSV with a free converter, JavaScript or Python, how nested objects, big IDs and Excel behave, tested on one real example.
JSON vs YAML explained with the same config in both formats, a size and speed test, the yes and no trap, and free converters to switch between them.
HTML entities explained: the three forms, the five characters you must escape, a list of common ones, the missing semicolon trap and a free encoder and decoder.
How to make a hyperlink in HTML, Markdown, Word, Google Docs and email, with copy-ready code, link text that works and the mistakes that break links.