Tiptap JSON to HTML Converter
Paste Tiptap JSON to preview the document and copy its HTML. A quick way to inspect what is stored in your database without spinning up an editor.
How to convert Tiptap JSON to HTML
- 1Paste your Tiptap JSON into the input panel, or upload a file.
- 2The HTML output updates as you type.
- 3Open the Preview tab to check how the content renders.
- 4Copy the result with the copy button.
Inspect what's in your database
Tiptap JSON is hard to read once it's a few levels deep. Paste a stored document here to see it rendered, and spot problems like empty paragraphs, stray marks, or broken links without starting your app.
Rendering Tiptap JSON in production
- generateHTML from @tiptap/html turns JSON into an HTML string on the server.
- The editorcn Static Renderer renders JSON or HTML as styled React and lets you map custom nodes to your own components.
- A read-only Tiptap editor works too, but it ships the whole editor to the browser just to show content.
Common errors
- Invalid JSON content: the document uses a node or mark that isn't registered, or a node is missing required content.
- A JSON syntax error: the text itself is malformed, often because of a trailing comma or a missing quote.
Convert Tiptap JSON to HTML in your own code
This tool is a headless Tiptap editor, so the same conversion takes a few lines in your app. See the Static Renderer docs for details.
import { Editor } from "@tiptap/core";
import { StarterKit } from "@tiptap/starter-kit";
const editor = new Editor({
element: null,
extensions: [StarterKit],
});
editor.commands.setContent(json);
const html = editor.getHTML();Frequently asked questions
What JSON can I paste?
Paste the output of editor.getJSON(). The document must have a doc node at the root with a content array.
How do I render Tiptap JSON in production?
Use the editorcn Static Renderer to render saved JSON or HTML as styled, read-only React without mounting an editor.
Why do I get an error?
The document uses a node type this tool doesn't register. Custom nodes need their extension to be converted.