Tool

Notion HTML Export Fixer

Strip 32-character hex ids from a Notion HTML export, rewrite internal links and asset paths, and protect code blocks before translation.

100% client-side: Your files never leave your browser.

Drop one or more .html, .htm, or .txt files from an extracted Notion export. 2 MB per file.

0 B
0 B
Files loaded 0Links rewritten 0Code blocks protected 0Broken internal links 0Filename: — -> —

Drop or paste HTML to build a filename rename list.

Nothing to list.

Reference

Why Notion HTML Exports Break After Translation

A Notion HTML export is a folder of static pages. Each page file and its asset folder ends with a 32-character hexadecimal id, and links store that gap as %20. Translation treats the token as text, so one side of a link changes while the other still points at the hashed path.

Title spaces are encoded as %20 in href and src. Changing only some of them, or hyphenating only some files, gives one page two names. A fragment such as #auth and any query string must stay on the cleaned path.

Commands sit in pre with class code, often around a nested code element. translate="no" and the class notranslate on pre, code, and any element with the token code keep those blocks fixed.

3-Step Workflow

Export from Notion with Include subpages enabled and keep the folder intact. Images live in a directory named like the page, id included, so the page file and the asset folder have to be renamed together.

Clean the HTML before translation. One pass strips ids from filenames, href values, and img src paths. External URLs, mailto and tel links, and a pure #fragment stay unchanged. Optional kebab-case applies the same lowercase names to files and links. Code blocks receive translate="no". A valid BCP-47 tag can set html lang, and a UTF-8 charset meta is added when head has none.

Translate the cleaned files, then read the link table. With two or more HTML files loaded, each relative html link is checked against the cleaned names. A missing target is a broken internal link.

Notion Export Surfaces

SurfaceRoleTreatment
32-character hex idTrailing id on the page file and asset folderStrip it from filenames and relative links
Asset folderDirectory named like the page, then the imageStrip the id on the folder segment only
pre and codeCommand blocks, often class codeAdd translate="no" and notranslate
External URLhttp, https, mailto, and other absolute linksLeave the value unchanged
#anchor fragmentHeading target after the file nameKeep the fragment on the cleaned path
html langMissing language or a source-language tagSet a BCP-47 tag and UTF-8

FAQ

Do asset folders stay valid after hashes are removed?

Yes. The folder segment loses its id and diagram.png stays in place. Absolute image URLs are left unchanged.

When is kebab-case the right choice?

Keep the original title when the client expects the Notion page name. Use kebab-case for lowercase hyphenated files, and apply one mode to the whole drop so links stay paired.

Should callouts and toggles be translated?

Yes. Callouts, toggle labels, headings, and alt text are reader-facing. Commands in pre and code, hex ids, and external URLs stay as exported.

Are the HTML files uploaded?

No. Cleaning, the link audit, and downloads run in the browser. Dropped files stay on the computer, with a 2 MB limit per file.

What does a broken internal link mean?

With two or more HTML files loaded, a relative html link is broken when its cleaned name is missing from that set. One pasted page does not flag absent subpages.

The handoff notes for a Notion export are in exporting Notion pages to HTML for clients. Layout-sensitive pages are covered in how to translate HTML without breaking layout and in translating HTML documentation. Exported sites can be checked with the Webflow localization cleaner. Other utilities are listed in the tools hub, and static pages can be translated with HTML Translate.