✳ OMNIVIEWER.ORG
FR

Export MDX

safe · secure · no server · works offline · fast

…or paste a file you copied in Finder, or just start typing at the cursor.

Or try it now

↓ scroll for about & FAQ

Preview

Drop a CSV file, or use the file picker.

Choose a format, its options, and the maximum size of the download.

It’s one lens on OmniViewer’s MDX Viewer & Component Auditor — Read .mdx: drop a file and every tab is one click away. OmniViewer opens every file format, entirely in your browser — no upload, no server.

FAQ

Is my MDX file uploaded anywhere?

No. OmniViewer is a static page with no server-side processing: your .mdx file is read directly by your browser, and every tab — preview, components, formatted, contents and stats — runs locally in a Web Worker. The file never leaves your computer.

Does the preview actually run my components?

No, and it deliberately cannot. Your components live in your repository, not in the file you dropped, and running unknown code from a dropped file would be unsafe. Instead each component is drawn as a labelled placeholder card showing its tag, the props it was passed and its children rendered as Markdown — so you see the shape of the finished page. Intrinsic HTML in your JSX is rendered for real, but every attribute except href, src, alt and title is dropped and URLs are scheme-checked, so nothing in the file can execute.

Can it tell me which components will break my build?

Yes — that is what the Components tab is for. It lists every component tag in the document and resolves each one against your imports and your exports. A tag that matches neither is flagged unresolved, which is the MDX error "Expected component X to be defined: you likely forgot to import, pass, or provide it". One caveat it states plainly: a component can also be supplied at render time by an MDXProvider, which is invisible from inside a single file, so an unresolved tag means it must come from a provider — not that it is definitely broken.

How large an MDX file can I open?

The raw and hex views are windowed — they read only the bytes needed to paint the screen — so they open files of effectively unlimited size, up to 20 GB and beyond. The component audit and stats are streamed in 4 MB blocks and cover every byte of the file at any size, showing progress as they go. Only the preview, formatter and contents tabs work on a bounded prefix, because rendering a document means holding its structure in memory, and they tell you when they capped.

What is MDX, and how is it different from Markdown?

MDX is Markdown that can import and render components. It adds two things ordinary Markdown does not have: ES module syntax (import and export statements at the start of a line) and JSX, including curly-brace expressions. Everything else is Markdown, and Markdown inside a JSX element is still parsed as Markdown. It was released in 2018 and rewritten as MDX 2 in 2022.

Does it understand frontmatter, nested components and code fences?

Yes. YAML frontmatter at the top of the file is parsed and shown as a header card in the preview and a table in the audit. Nested components render as nested cards, with their Markdown children dedented and rendered. Fenced code blocks are treated as code everywhere, including inside a JSX element — so an import statement or a component tag in a code sample is never mistaken for real MDX syntax.

Can I convert MDX to plain Markdown?

Not as a one-click export. The Formatted tab tidies the MDX source while keeping the imports and JSX intact, because those are what make it MDX. If you want the prose alone, the Preview tab shows the document with components rendered as placeholders, and the raw and hex views give you the exact bytes to work from.