Skip to main content

    Markdown Converter

    Convert HTML, CSV, JSON, XML, documents (DOCX, XLSX, PPTX), or plain text to Markdown format.

    Convert HTML tags to Markdown syntax using Turndown.js

    0 characters ยท 1 lines

    0 characters ยท 1 lines

    Markdown Syntax Quick Reference

    Headers

    # H1 Header
    ## H2 Header
    ### H3 Header

    Emphasis

    **bold text**
    *italic text*
    ~~strikethrough~~

    Links & Images

    [Link text](https://url.com)
    ![Alt text](image.jpg)

    Lists & Tables

    - Unordered list
    1. Ordered list
    | Table | Header |

    How Each Conversion Works

    ๐ŸŒ HTML to Markdown

    Uses Turndown.js to convert HTML tags to Markdown syntax. Headings (<h1>-<h6>) become # headers, <strong> and <b> become **bold**, <em> and <i> become *italic*, links become [text](url), and lists are preserved with - or 1. notation.

    <h2>Title</h2> โ†’ ## Title
    <strong>Bold</strong> โ†’ **Bold**

    ๐Ÿ“Š CSV to Markdown Table

    Parses CSV data (comma, semicolon, or tab-delimited) and creates formatted Markdown tables. The first row becomes the table header, and subsequent rows become table data. Handles quoted fields and automatically aligns columns.

    Name,Age โ†’ | Name | Age |
    Alice,28 โ†’ | Alice | 28 |

    ๐Ÿ“ฆ JSON to Markdown

    Validates and formats JSON data as a Markdown code block with syntax highlighting. The JSON is automatically indented with 2 spaces for readability and wrapped in triple backticks with the 'json' language identifier.

    {"name":"value"} โ†’ ```json { "name": "value" } ```

    ๐Ÿ“„ XML to Markdown

    Formats XML as a Markdown code block with syntax highlighting. The XML is wrapped in triple backticks with the 'xml' language identifier, preserving the original structure and indentation for easy viewing in Markdown renderers.

    <root>...</root> โ†’ ```xml <root>...</root> ```

    ๐Ÿ“ Text to Markdown

    Auto-detects patterns in plain text and converts them to Markdown. URLs are converted to clickable links [url](url), email addresses become mailto: links, and ALL CAPS lines are converted to ## headers. Existing list formatting is preserved.

    https://example.com โ†’ [https://example.com](https://example.com)
    user@email.com โ†’ [user@email.com](mailto:user@email.com)

    Common Use Cases

    ๐Ÿ“š README Files

    Convert HTML documentation to Markdown for GitHub, GitLab, or Bitbucket README files. Perfect for open-source projects.

    ๐Ÿ“Š Data Tables

    Transform CSV exports from Excel or Google Sheets into Markdown tables for documentation or blog posts.

    ๐Ÿ“– Technical Docs

    Convert API responses (JSON/XML) to formatted Markdown code blocks for technical documentation and tutorials.

    โœ๏ธ Blog Posts

    Convert HTML content to Markdown for static site generators like Jekyll, Hugo, or Gatsby.

    Frequently Asked Questions

    Related Tools