Tool01
All tools

Free · local in your browser

Google Docs to Royal Road HTML Cleaner

Paste a formatted chapter from Google Docs or Word—or drop in raw HTML. Keep the headings, emphasis, lists, links, blockquotes, and tables readers need while document clutter and unsafe content are removed locally in your browser.

1 · Paste the chapter

Formatted paste or raw HTML

Realistic Docs example loaded. Paste over it or edit the raw HTML directly.
Your draft is parsed and cleaned in this browser tab. Nothing is uploaded, stored, or sent to WriteIDE.

2 · Take the clean copy

Royal Road-ready output

36 source elements → 30 clean elements

Safe to preview
<h2><strong>Chapter 18: The Glass Gate</strong></h2>

<p>The gate opened without a sound. <em>That was worse.</em></p>

<p>Mira raised one hand. <strong>“Nobody spends a point until we know the cost.”</strong></p>

<blockquote>
  <p><em>System Notice: Trial conditions have changed.</em></p>
</blockquote>

<h3>Trial objectives</h3>

<ol start="3">
  <li>Cross the glass bridge.</li>
  <li><u>Keep every party member conscious.</u></li>
</ol>

<table>
  <tbody>
    <tr>
      <th>Stat</th>
      <th>Before</th>
      <th>After</th>
    </tr>
    <tr>
      <td>Resolve</td>
      <td>14</td>
      <td><strong>17</strong></td>
    </tr>
    <tr>
      <td>Ward</td>
      <td colspan="2">Locked until trial completion</td>
    </tr>
  </tbody>
</table>

<p>Read the <a href="https://www.royalroad.com/home">series page</a> after publishing.</p>

9 cleanup categories, 3 content warnings.

Cleanup receipt

What changed

3 content warnings
  • Remote-loading markup neutralized before parsing1

    Resource URLs and refresh vectors were removed from the raw markup before the browser built an inert document.

  • Images removed1

    Remote and pasted images can leak draft activity or fail after publishing. Add trusted images in Royal Road after pasting the chapter.

  • Hidden content removed1

    Elements marked hidden by their attributes or inline styles were discarded with their contents.

  • Inline style attributes removed16

    Recognizable bold, italic, underline, and strike formatting is converted to semantic HTML first.

  • Visual formatting converted to semantic tags6

    Font styles from Docs and Word became strong, em, u, or del tags before styles were removed.

  • Document-only classes and identifiers removed6

    Google Docs and Word classes, ids, data attributes, and editor metadata are not needed in a chapter.

  • Unsupported attributes removed3

    Event handlers and other attributes outside the small publishing allowlist were discarded.

  • Clipboard comments removed1

    Fragment markers and editor comments were discarded.

  • Non-breaking spaces normalized1

    Non-breaking spaces were replaced with ordinary spaces to prevent uneven gaps and wrapping.

3 · Inspect before publishing

Sanitized chapter preview

Formatting approximation

Chapter 18: The Glass Gate

The gate opened without a sound. That was worse.

Mira raised one hand. “Nobody spends a point until we know the cost.”

System Notice: Trial conditions have changed.

Trial objectives

  1. Cross the glass bridge.
  2. Keep every party member conscious.
Stat Before After
Resolve 14 17
Ward Locked until trial completion

Read the series page after publishing.

This preview renders only the sanitizer's allowlisted output. Royal Road themes and editor rules can change spacing or colors, so use Royal Road's own preview as the final check.

Paste the formatted version

Copy the chapter normally in Google Docs or Word, click the source box, and paste. The tool reads the clipboard's HTML flavor automatically. Plain text cannot carry headings, emphasis, links, lists, or tables.

A deliberately small allowlist

Paragraphs, headings, strong and italic text, underline, strike, links, lists, quotes, code, horizontal rules, and table structure are rebuilt. Scripts, styles, classes, forms, embedded media, hidden text, and unsafe URLs are discarded.

Paste into HTML source

Copy Clean HTML, open the chapter editor's HTML or source view, and paste there. Save and inspect the platform preview before publishing. Copy Text is a formatting-free fallback, not the primary Royal Road workflow.

Made with writeide.com
Browse all free tools