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

    HTML Input

    Paste content to convert

    0chars0lines

    Markdown Output

    Your converted Markdown

    0chars0lines

    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.

    Tips for Best Results

    • 1.Clean HTML first - For complex HTML, use our Remove HTML Tags tool first to strip unwanted elements, then convert the cleaned content.
    • 2.Check CSV delimiters - The converter auto-detects commas, semicolons, and tabs. If your CSV uses a different delimiter, convert it first using a text editor.
    • 3.Validate JSON before converting - Invalid JSON will show an error. Use a JSON validator to check syntax before pasting complex data structures.
    • 4.Preview in your target platform - Markdown rendering varies slightly between platforms. Test the output in GitHub, Notion, or your target system to verify formatting.

    Frequently Asked Questions

    🧰

    Related Tools