User Agents

Web browsers and everyday web tech, explained

Convert Web Page to Markdown in Your Browser

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Converting a web page to Markdown allows you to strip away distracting ads, navigation menus, and complex styling, leaving you with a clean, portable text format. This process is essential for researchers, developers, and writers who want to archive web content in personal knowledge bases like Obsidian, Notion, or GitHub. By transforming HTML into Markdown, you preserve the structural hierarchy of the content—such as headings, lists, and links—while making the data easy to edit and search in any plain-text editor.

What You'll Need

  • A modern web browser (Google Chrome, Mozilla Firefox, Microsoft Edge, or Brave).
  • A browser extension designed for Markdown conversion (such as MarkDownload or Roam-highlighter).
  • Alternatively, a web-based conversion tool if you prefer not to install extensions.
  • A text editor or Markdown note-taking app to save the final output.

Step-by-Step

  1. Choose Your Conversion Method: Decide whether you want to use a browser extension for frequent use or a web-based converter for a one-time task. Extensions are generally faster as they integrate directly into the browser's context menu or toolbar.
  2. Install a Markdown Extension: Visit your browser's official extension store (e.g., the Chrome Web Store or Firefox Add-ons). Search for "Markdown Downloader" or "MarkDownload." Click "Add to Browser" or "Install" and grant the necessary permissions to read the page content.
  3. Navigate to the Target Page: Open the web page you wish to convert. Ensure the page is fully loaded, including any dynamic content or images, to ensure the converter captures all the relevant information.
  4. Activate the Converter: Click the extension icon in your browser's toolbar. Most extensions will immediately open a preview window showing the HTML content translated into Markdown syntax.
  5. Configure Conversion Settings: Within the extension's options or the preview window, adjust how the content is handled. Common settings include including the page title, adding the source URL as a link at the top, or stripping out specific HTML tags like scripts and styles.
  6. Review the Preview: Scroll through the generated Markdown text. Check that the headings (indicated by #) are correctly nested and that links (indicated by [text](url)) are functioning. If the layout looks cluttered, you may need to manually delete unnecessary sections from the preview.
  7. Export or Copy the Content: Choose your preferred output method. You can either click a "Download" button to save the content as a .md file or click "Copy to Clipboard" to paste it directly into your note-taking application.
  8. Save and Organize: If you downloaded a file, move it to your desired archive folder. If you copied the text, paste it into your Markdown editor and save the document with a descriptive name for future reference.

Common Mistakes

  • Converting the Entire Page: Many users convert the whole page, including the header, footer, and sidebar. This results in a Markdown file cluttered with "Home," "About Us," and "Privacy Policy" links. It is better to use a "selection-only" mode if the extension supports it.
  • Ignoring Image Links: Some converters only save the URL of an image rather than downloading the image itself. If you move the original web page or the site goes offline, those images will break in your Markdown file.
  • Overlooking Paywalls: Attempting to convert a page while behind a paywall or login screen without being authenticated will result in the converter capturing the login page rather than the actual article.
  • Assuming Perfect Formatting: Markdown is a simplification of HTML. Complex tables, nested divs, or interactive elements often do not translate perfectly and may require manual cleanup.

Tips

  • Use Reader Mode First: If your browser has a built-in Reader Mode, activate it before running the Markdown converter. This removes ads and sidebars at the browser level, giving the converter a cleaner source to work from.
  • Custom Templates: If using an advanced extension like MarkDownload, set up a custom YAML frontmatter template. This allows you to automatically include metadata like the author, date accessed, and tags at the top of every file.
  • Keyboard Shortcuts: Check the extension settings for keyboard shortcuts. Assigning a key combination (like Ctrl+Shift+M) can significantly speed up your workflow when archiving multiple pages.
  • Batch Processing: For those needing to convert dozens of pages, look for tools that support URL lists or API integrations rather than manual browser clicks.

Troubleshooting

If the converter is not working as expected, first check if the website uses a strict Content Security Policy (CSP) that prevents extensions from running scripts on the page. In such cases, try copying the page content manually and pasting it into a web-based HTML-to-Markdown converter.

If the output is completely blank, ensure that the page has finished loading. Some modern websites use "lazy loading," meaning content only appears as you scroll. Scroll to the bottom of the page before triggering the conversion to ensure all elements are rendered in the DOM.

If links are broken or formatting is skewed, try a different extension. Different tools use different parsing libraries (such as Turndown), and some handle complex CSS layouts better than others.

Frequently Asked Questions

Do I need to know how to code to use Markdown?

No. While Markdown uses simple symbols (like asterisks for italics), you do not need to write code. The browser extension handles the conversion automatically, and most Markdown editors provide a visual preview.

Will the images from the web page be saved locally?

Usually, no. Most browser converters save the image URL. To save images locally, you would need a full-page web scraper or a tool specifically designed for offline archiving.

Does this work on mobile browsers?

It depends on the browser. Chrome on iOS and Android does not support extensions. However, Firefox for Android supports a limited selection of add-ons, and some third-party apps can perform this function.

Is the converted content editable?

Yes. Because Markdown is plain text, you can open the resulting file in any text editor (like Notepad, TextEdit, or VS Code) and make changes easily.

Can I convert a PDF to Markdown using this method?

No. These browser methods work on HTML pages. To convert a PDF to Markdown, you would need a dedicated OCR or PDF conversion tool.