Documentation
Complete guide to using HTML to Markdown converter
Quick Start
HTML to Markdown is a free online tool that converts HTML content into clean Markdown format. No sign-up required, no data stored on our servers.
How to Use
- Choose your processing mode: Local (privacy-first) or API (enhanced features)
- Choose your input method: HTML Code or URL
- Paste your HTML code or enter a URL
- Click the "Convert" button (or press Ctrl + Enter)
- Copy or export your Markdown result
Processing Modes
Local Mode (Default)
100% Privacy: All conversions happen in your browser. No data sent to servers. Works offline. Perfect for sensitive content.
API Mode (Optional)
Enhanced Features: Server-side processing with better URL fetching, JavaScript rendering, and detailed analytics. Automatic fallback to local mode if API is unavailable.
Features
HTML Code Conversion
Paste any HTML code directly into the editor. The converter supports all standard HTML elements including:
- Headings (h1-h6)
- Text formatting (bold, italic, underline, strikethrough)
- Links and images with proper markdown syntax
- Lists (ordered and unordered)
- Code blocks and inline code with syntax highlighting
- Blockquotes and nested quotes
- Tables with proper alignment
- Task lists (GitHub Flavored Markdown)
URL Conversion
Enter any public URL and we'll fetch the HTML content and convert it to Markdown. Perfect for:
- Saving web articles and blog posts
- Converting documentation pages
- Archiving online content
- Creating offline reading copies
Keyboard Shortcuts
Speed up your workflow with these keyboard shortcuts:
API Documentation
For developers, we provide a REST API for programmatic HTML to Markdown conversion. Integrate our service into your applications with just a few lines of code.
Public Endpoints
Free endpoints for testing and low-volume usage:
Convert HTML
1POST /api/v1/public/convert2Content-Type: application/json3 4{5 "html": "<h1>Hello World</h1><p>This is a paragraph.</p>"6}Convert URL
1POST /api/v1/public/convert-url2Content-Type: application/json3 4{5 "url": "https://example.com/article"6}Authenticated API
For higher rate limits and batch processing capabilities, contact us for an API key. Authenticated endpoints include:
- Higher rate limits (up to 1000 requests per minute)
- Batch processing for multiple URLs
- Priority processing queue
- Custom conversion options
Rate Limits
Public API Limits
- 60 requests per minute per IP address
- 5 MB maximum HTML size per request
- 30 seconds URL fetch timeout
- 100 requests per hour for URL endpoint
💡 Tip: The web interface automatically manages API usage and falls back to local mode if limits are reached.
Using API Mode in the Web Interface
The easiest way to use our API is through the web interface:
- Navigate to the homepage converter
- Click the mode toggle at the top to switch from "Local" to "API"
- The interface will automatically use the API for conversions
- If the API is unavailable, it automatically falls back to local processing
API Mode Benefits
- • Enhanced URL fetching with JavaScript rendering support
- • Detailed conversion analytics (elements processed, timing)
- • Better handling of complex websites
- • Server-side CORS handling
Best Practices
Clean Your HTML
For best conversion results, clean your HTML before conversion:
- Remove unnecessary inline styles and scripts
- Ensure proper HTML structure with semantic tags
- Avoid deeply nested tables or complex layouts
- Test with smaller sections first
Handle Large Documents
For large documents or batch processing:
- Consider breaking large content into smaller sections
- Use the API for automated batch processing
- Implement retry logic for network issues
- Cache conversion results when possible
Test Your Output
Always test your Markdown output:
- Preview in your target platform (GitHub, Notion, etc.)
- Check for proper table formatting
- Verify link and image references
- Test code block syntax highlighting
Conversion Options
Customize how HTML is converted to Markdown with these options:
Heading Style
Choose between ATX (# Heading) or Setext (underlined) heading styles.
Code Block Style
Use fenced code blocks (```) or indented code blocks.
Link Style
Inline links [text](url) or referenced links [text][1].
GitHub Flavored Markdown
Enable tables, task lists, strikethrough, and more.
Supported HTML Elements
Our converter supports a comprehensive set of HTML elements:
Text Elements
- h1, h2, h3, h4, h5, h6
- p, br, hr
- strong, b, em, i
- u, s, del, ins
- small, sub, sup
Structural
- div, span
- ul, ol, li
- dl, dt, dd
- blockquote
- pre, code
Media & Links
- a (links)
- img (images)
- table, thead, tbody
- tr, th, td
- figure, figcaption
Limitations
Need Help?
Can't find what you're looking for? Check our resources:
Ready to try it out?
Start converting HTML to Markdown right now. No registration required, completely free to use.
Try the Converter