Markdown
Markdown Code Block Generator
Wrap code in a fenced Markdown block with a language tag.
How it works
- 1Paste your code.
- 2Set the language.
- 3Copy the fenced code block.
Use cases
- Share a code snippet on GitHub.
- Add code to docs.
- Format a command for a README.
Frequently asked questions
Why add a language?
The language tag enables syntax highlighting wherever the Markdown is rendered.
Does it change my code?
No. Your code is wrapped exactly as-is between the fences.
Is it private?
Yes. Everything is generated in your browser; nothing is uploaded.
Related tools
See all →Markdown Editor
A fast, free online Markdown editor with live side-by-side preview.
Live Markdown Preview
Paste Markdown and see it rendered live, side by side, as you edit.
Split View Markdown Editor
A two-pane Markdown editor with the source and live preview side by side.
Fullscreen Markdown Editor
An immersive, full-window Markdown editor with live preview.