Tools Pre/Code Converter

Escape raw code to a safe <pre><code> block (and back), add language classes, and copy instantly.

Input

Paste raw code or HTML here. Choose a language class and options below.

Output

Generated HTML you can paste into docs, blogs, CMS, or templates.

Preview

Live render of your converted block.