iLoveMD
100% in your browser

Convert MDX to Markdown

Strip the JSX components, imports, and expressions out of an .mdx file and keep the underlying Markdown, for a clean reading copy. Code samples stay intact. Everything runs in your browser; nothing is uploaded.

  • Always free
  • No uploads
  • No sign-up
  • No tracking

Converting MDX to Markdown turns an .mdx file into a clean Markdown reading copy. MDX is Markdown with JSX components and JavaScript mixed in, which most Markdown viewers cannot open. iLoveMD does the conversion entirely in your browser: paste or drop an .mdx file and it removes the import and export lines, strips JSX component tags while keeping the text inside them, drops the brace expressions, and keeps all the real Markdown such as headings, lists, tables, links, and code blocks. Code samples stay exactly as written, so a fenced block that shows a component is left untouched. Front matter is kept as a labeled block at the top. Because the file is processed locally in JavaScript, it is never uploaded to a server, it works offline once the page has loaded, and there is no sign-up or tracking. This is a reading copy for review and reuse, not a build-faithful version: components cannot be rendered, so their tags are taken out and their content kept. Copy the result or download it as a .md file.

← All conversion tools

Drop an .mdx file here or click to upload .mdx
No files selected

MDX Input

Markdown Preview

Export Your Results

MDX to Markdown Docs

MDX is Markdown with JSX components and JavaScript mixed in, used by documentation sites like Docusaurus, Nextra, and Next.js. Most Markdown viewers cannot open it. This tool strips the MDX-specific parts in your browser and leaves a clean Markdown reading copy. Nothing is uploaded.

What gets stripped

  • Import and export lines (the ESM statements at the top or middle of the file) are removed.
  • JSX component tags such as <Callout> or <Tabs> are taken out, and the text inside them is kept.
  • Brace expressions like {frontmatter.title} and {/* comments */} are dropped.
  • Front matter (the --- block at the top) is kept as a labeled block so you do not lose it.

What stays notes

  • All the real Markdown stays: headings, paragraphs, lists, tables, links, images, blockquotes, and emphasis.
  • Code blocks stay exactly as written. A fenced or inline code sample that shows a component is left untouched, so examples are never mangled.
  • It reads what you paste, too. You can paste MDX straight into the box instead of uploading a file.
Tip: the result is plain Markdown, so you can open it in any editor, drop it into an Obsidian vault, or feed it to an LLM.

Limits & privacy

  • It is a reading copy, not a build. Components cannot be rendered without running the file, so their tags are removed and their text is kept. The output will not rebuild the original page.
  • Links are checked. Any link or image left in the Markdown is screened, and unsafe targets such as javascript: are neutralized so the copied file is safe to reuse.
  • Nothing is fetched. The tool does not load images or follow links, so a file cannot quietly call out to the network.
  • Privacy: the file is read and converted entirely in your browser. Nothing is uploaded.

How do I convert MDX to Markdown?

1

Add your MDX

Paste your MDX into the box, or drop an .mdx file onto the upload strip. It is read in your browser; nothing is uploaded.

2

Let it strip the JSX

Imports, exports, component tags, and brace expressions are removed; the headings, lists, tables, links, and code blocks stay.

3

Copy or download the Markdown

You get a clean Markdown reading copy. Copy the result or download it as a .md file.

Frequently asked questions

What is MDX and why convert it?

MDX is Markdown with JSX components and JavaScript mixed in, used by docs frameworks like Docusaurus and Nextra. Most Markdown viewers cannot open it, so this tool strips the JSX and leaves plain Markdown you can read and reuse.

Does it keep my code samples?

Yes. Code blocks, both fenced and inline, are left exactly as written. A code sample that shows a component is never altered, only the live JSX in the document body is stripped.

What happens to components like Callout or Tabs?

Their tags are removed and the text inside them is kept. This is a reading copy, so components are not rendered; you get their content as plain Markdown.

Is the front matter kept?

Yes. The YAML front matter at the top of the file is kept as a labeled block, so you do not lose the title, date, or other fields.

Is my file uploaded anywhere?

No. The MDX is read and converted entirely in your browser, and the tool never loads images or follows links inside it.

Last updated: June 28, 2026