Markdown to HTML

Convert GFM Markdown into restricted HTML source locally in a worker.

ReadyRuns in your browser
INPUT & CONTROLS

Prepare your input

Local processing

Converts GFM Markdown into a restricted HTML fragment. Active content is removed; passive unknown wrappers unwrap. Only allowlisted attributes and safe HTTP(S), relative, fragment or query destinations survive. Task checkboxes are always disabled. Comments, IDs, events, styles and unknown attributes are omitted. HTML appears only as source text: no preview, DOM insertion or target fetching. Downstream renderers and CSS may behave differently.

Limits: 262,144 input UTF-16 units; 20,000 original lines; 2,000,000 intermediate HTML units before inert parsing; 20,000 complete AST nodes including ignored/template content; depth 64; 300,000 final output units. Unsupported controls and malformed surrogates reject. Ordered-list start attributes must be signed integers within ±999,999,999 or are omitted. A worker stops after 2,000 ms; edits, examples and Clear cancel previous work. Worker support is required.

Runs locally in a worker. Markdown and generated HTML are not sent or stored.

Result

Your result starts here

Review the input and selected options, then use the primary action. Output and any validation messages will appear here.

METHOD & CONTEXT

Understand the result before using it.

How it works

Renders Markdown with a fresh Marked instance, parses an inert fragment, validates the whole AST, then emits allowlisted tags and attributes incrementally.

Interpretation

Read the result summary first, then inspect the detailed output and any errors or warnings. The result describes the supplied input and selected options. Changing input requires another run.

Assumptions & warnings

Marked is not a sanitizer by itself. Active subtrees and unsupported attributes are omitted, unsafe targets fall back to text, and task checkboxes are forced disabled. Output is source only; downstream rendering is outside this tool.

Inputs are processed in your browser. Follow the input format and size limits shown next to the controls.

Try an example

Select Load example in the input panel, review the selected mode, then use its displayed primary action. Inspect the result before replacing the sample with your own input.

Related utilities for the next step in your task.

Explore Developer Utilities →