.mdx File — Markdown with JSX
text/mdx
Drop any file to identify its extension and type — runs entirely in your browser
Drop a .mdx file here or click to choose
Or drop any file to identify its extension
text/mdxQuick Facts
| Extension | .mdx |
| Full Name | Markdown with JSX |
| MIME Type | text/mdx |
| Category | Web |
| Type | Text-based (human-readable) |
| Typical Size | 1 KB – 50 KB |
| First Appeared | 2018 |
What Is a .mdx File?
MDX combines Markdown's readable syntax with JSX components, enabling rich, interactive content in documentation, blogs, and content-driven websites. MDX files allow importing and embedding React (or other JSX-compatible framework) components directly within Markdown content, creating a powerful authoring format that bridges technical writing and interactive web development. Content authors can write prose in familiar Markdown while inserting interactive charts, code playgrounds, design system components, callout boxes, and any custom React component inline with their text. MDX supports frontmatter metadata (YAML), custom components that replace standard HTML elements (e.g., a custom CodeBlock instead of code fences), layout components that wrap entire documents, and dynamic content through JavaScript expressions. The format is compiled by the @mdx-js/mdx compiler and integrates with frameworks like Next.js, Gatsby, Remix, and Astro. MDX is widely used for technical documentation (Docusaurus, Nextra), component libraries (Storybook), content management, and personal blogs. The format has become essential in the JAMstack ecosystem where content-rich sites need to combine editorial content with interactive UI components.
How to Open .mdx Files
Related File Extensions
More Web File Extensions
Other web formats you might encounter
Browse File Extensions by Category
Explore our reference of 259 file extensions with details, programs, and related formats.