Publish Helper logo

Convert Apple Pages to Clean HTML

Pages exports a page-layout document: absolutely positioned text boxes, pixel margins on every paragraph, and a private .AppleSystemUIFont declaration that only macOS resolves. This page covers that output shape and why the font breaks everywhere else.

I

Why Apple Pages HTML Is Messy

Editor:Apple Pages (macOS and iOS/iPadOS), part of the iWork suite

Pages generates HTML with -webkit- and -apple- prefixed CSS properties, Apple system font declarations (like .AppleSystemUIFont), and WebKit-specific text rendering hints. Paragraph styles include detailed spacing attributes that only render correctly in Safari or WebKit browsers.

II

What Pages Output Actually Contains

Document wrapper

A fragment with a page-level style block and a body of paragraphs carrying explicit margin:0px declarations.

Fonts

font-family: '.AppleSystemUIFont' — a private macOS system font name that Windows and Linux browsers cannot resolve, so text silently falls back to a default serif or sans.

Sizes and spacing

Pixel-based font-size and line-height on every paragraph, plus font-stretch:normal and text-rendering hints that only WebKit interprets.

Bold and italic

<b> and <i> inside the styled paragraph, which is closer to semantic markup than Docs or Word produces.

Images and shapes

Images are exported with absolute or file-relative links, often wrapped in a div that carries the object's position; text boxes paste as absolutely positioned blocks.

III

Before & After

Apple Pages Output

<p style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: '.AppleSystemUIFont';"><b>Introduction</b></p>
<p style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: '.AppleSystemUIFont';">This is a paragraph with <b>bold text</b> and <i>italic text</i>.</p>

Clean HTML

<h2>Introduction</h2>
<p>This is a paragraph with <strong>bold text</strong> and <em>italic text</em>.</p>
IV

How to Clean Apple Pages HTML

  1. 1.

    Copy the text from Pages (or export to HTML if the layout matters)

  2. 2.

    Clean in Publish Helper so the .AppleSystemUIFont declarations and pixel margins are removed

  3. 3.

    Convert absolutely positioned text boxes into ordinary paragraphs

  4. 4.

    Preview on a non-Apple browser to confirm the fallback font looks right

V

Where the Paste Comes From

Ctrl/Cmd+C in Pages → paste into a web editor

Sends Pages' HTML flavour with .AppleSystemUIFont declarations and pixel metrics. Safari may render it closer to the original than Chrome or Firefox.

File → Export To → HTML

Produces a full document with an _files asset folder, absolute-ish image links, and the same font and spacing declarations, plus a page-width wrapper.

File → Export To → Word (.docx)

A round trip through Word: the output then carries Word's MsoNormal classes instead of Pages' Apple font declarations. Not cleaner, just differently messy.

Pages on iPad → share or copy

Copying from an iPad sends an HTML flavour too, but text boxes and shapes are often flattened into paragraphs, which loses layout order.

VI

Troubleshooting — Apple Pages

The text renders in the wrong font everywhere except Safari

.AppleSystemUIFont is a macOS-private name. Removing the font-family declarations lets the destination's typography apply; there is no cross-platform equivalent to keep.

Spacing between paragraphs is uneven after pasting

Every paragraph carries its own margin and line-height in pixels. Strip the styles so the CMS theme's paragraph spacing applies uniformly.

A text box or shape moved to the wrong place

Pages positions text boxes as absolutely positioned elements. Convert them to ordinary paragraphs before publishing, or rebuild the layout with the CMS's own blocks.

Pages is built on a page-layout model inherited from print, and its HTML export reflects that. Text boxes, shapes and images are positioned objects, not flowed content, so a paste can carry absolute positioning that no blog theme expects. The visible symptom is a section that overlaps the header or sits in a narrow column while the rest of the post is full width.

The font declaration is the most distinctive Pages artefact and the easiest to diagnose: '.AppleSystemUIFont' starts with a dot because it is a private system font identifier, and the leading dot makes some CSS parsers drop the declaration entirely while others keep it and fail to resolve the name. Either way the reader's browser picks a fallback, which is why a Pages paste can look correct on the author's Mac and different on every other machine.

VII

Tools for This Workflow

VIII

Frequently Asked Questions

Why does Pages export '.AppleSystemUIFont' instead of a normal font name?

+

Pages defaults to the macOS system font, which HTML has no portable name for, so the export writes the private identifier. Browsers on macOS may resolve it; others cannot, so the text falls back. Removing the declaration is the only reliable fix.

Is exporting as Word better than exporting as HTML from Pages?

+

It is a different flavour of messy. Word export replaces the Apple font declarations with MsoNormal classes and mso- properties. Neither is clean; the HTML export is easier to clean because it contains fewer Office-specific constructs.

Does Apple Pages paste well into WordPress?

+

Not directly. Pages HTML includes Apple-specific font families and WebKit CSS properties that render differently in non-Safari browsers. Clean it with Publish Helper first for consistent cross-browser results.

Why does Pages use .AppleSystemUIFont?

+

Pages defaults to the macOS system font, which is referenced as .AppleSystemUIFont in HTML. This font name isn't recognized by Windows or Linux browsers, causing fallback to a generic font. Publish Helper strips these declarations.

Can I paste from Pages on iPad?

+

Yes. Copy from Pages on iPad, open Publish Helper in Safari or any mobile browser, paste into the editor, and clean the HTML. The tool works entirely in the browser on any device.

Last updated: May 2026|Built by content editors for content editors|Used by 10,000+ bloggers
Related Tools & Guides

Ready to clean your HTML?

Open Publish Helper

Last updated: March 2026

Changelog

v3.5.02026-11-08
  • NewWarm dark mode — switch it from the header; your choice is remembered
  • ImprovedWith no saved choice, the theme follows your system's light/dark preference from the first frame, without a flash
  • FixThe browser's theme colour now always matches the current theme — one meta tag instead of two
  • FixDark mode rebuilt on the current page architecture, so it applies consistently to every page
  • ImprovedEvery pull request now runs type checks, unit tests and a production build automatically — same features, steadier quality
v3.4.02026-11-05
  • New4 new platform guides — ChatGPT, PDF, beehiiv and Mailchimp
  • ImprovedAll 16 platform guides rewritten with platform-specific content; Keyword Density, Readability and HTML Diff guides expanded ~3×
  • FixAd banners no longer push content down the page — stable layout from first paint
  • FixStructured Data tool's date field no longer stuck at the build date
  • ImprovedMobile: compact cookie banner, larger touch targets, AA-compliant text contrast
  • ImprovedRelated-page links now stay in your language
  • FixInternal fixes — sitemap coverage, canonical URLs, security headers and legacy URL handling
v3.3.12026-06-17
  • FixSlug generator updated to latest AI model for better reliability
  • FixHeading conversion now supports U+FE30 colon separator (︰) used in vertical CJK text
  • FixHeading conversion no longer includes leading &nbsp; in the extracted title
  • FixOG image generator now wraps long CJK text and prevents overflow with ellipsis truncation
  • ImprovedUpdated sharp to 0.35.1 for better image processing
v3.3.02026-05-30
  • FixSEO & a11y: <html lang> attribute, theme-color meta, OG image alt text i18n
  • FixGA scripts properly removed on consent decline
  • FixContent Stats i18n + link count regex fix
  • FixTool page section numbering corrected (all 14 pages)
  • ImprovedSimplified cleanup options — removed 10 checkboxes Tiptap already handles, kept only 4 useful ones
  • ImprovedAuto-clean only triggers on paste, not every content change
v3.2.12026-05-26
  • FixHeading converter now correctly splits paragraphs containing MULTIPLE heading-strong elements
  • FixHeading converter now places extracted headings BEFORE their body paragraph instead of after
  • FixEditor toolbar no longer causes React hydration mismatch on first paint
  • FixMissing @tiptap/extension-drag-handle-react dependency added
v3.2.02026-05-23
  • New6 new SEO content editing tools — Case Converter, Text Extractor, Text Diff Checker, Keyword Density Analyzer, SERP Preview Generator, Readability Checker
  • NewHeading dropdown expanded to H5-H6 (was H1-H4 only)
  • NewTable toolbar — insert/delete rows & columns, merge/split cells, toggle header row
  • NewDrag Handle React — drag and reorder blocks in the editor
  • NewCase Converter — 11 case formats including camelCase, PascalCase, snake_case, kebab-case
  • ImprovedSERP Preview — accurate Google-style preview with desktop/mobile views
  • ImprovedText Diff — word-level highlighting within changed lines
  • ImprovedAll new tools linked from the main page TOOLS & GUIDES section and related pages
  • Improvedzh-TW FAQ alignment fixed across all tools
v3.1.12026-05-23
  • FixEditor draft restore — saved content now correctly loads into the Tiptap editor on page reload
  • ImprovedDependency updates for better performance and stability
v3.1.02026-05-14
  • NewBold List Labels — auto-bold label prefixes (e.g. "Name: John" → "<strong>Name:</strong> John") in list items
  • NewFormatting Add-ons group — Heading Conversion, CJK Auto-Spacing, and Bold List Labels now grouped under a collapsible section
  • FixCJK Auto-Spacing now works across HTML tag boundaries
v3.0.22026-05-08
  • FixHeading converter now correctly splits multiple H2/H3 prefixes inside a single <strong> element separated by <br> tags
v3.0.12026-05-07
  • FixHTML cleaner now properly strips orphaned <strong><br><br></strong> tags left behind by Google Docs
  • FixHeading converter now detects H2/H3 prefixes inside <strong> tags embedded at the end of a paragraph
  • FixTrailing <br> tags at the end of paragraphs are now stripped — no more pointless line breaks before headings
v3.0.02026-05-03
  • NewHTML Diff Viewer — compare before and after HTML with a visual diff (green/red)
  • NewContent Stats Calculator — word count, reading time, heading, image, and link counts
  • NewHTML Accessibility Checker — detect missing alt text, empty headings, skipped levels, and more
  • NewOG Image Generator — create 1200×630 social share images from your blog post title
  • NewMarkdown ↔ HTML Converter — bidirectional conversion between Markdown and HTML
  • NewTable of Contents Generator — auto-generate nested TOC from heading tags in HTML or Markdown
  • NewJSON-LD Structured Data Builder — generate Article, BlogPosting, and FAQPage schema markup
  • NewAuto-clean on paste — optional toggle that auto-triggers cleanup when content is pasted
  • NewTable cleanup options — strip cell widths and remove empty table cells
  • NewAuto-save draft — content is saved to localStorage and restored on accidental refresh
  • NewAll new tools linked from the main page TOOLS & GUIDES section and related pages
v2.4.12026-04-27
  • NewParagraph option added to heading dropdown — convert headings back to normal text
  • FixH1–H6 heading prefixes now convert correctly even when pasted with leading line breaks
  • FixFixed page crash on load — cookie consent now renders reliably
  • ImprovedDependency updates for better performance and stability
v2.4.02026-04-17
  • NewClear button — quickly wipe all editor content and reset the HTML panel from the left panel header
  • FixEmpty <p></p> placeholder no longer appears in the HTML panel after clearing the editor
  • NewImage insert via URL — paste any image URL into the editor with a new toolbar popover
v2.3.22026-04-14
  • FixHeading conversion rewritten with DOM parsing — now works with any wrapper tag, split headings, and safely preserves <li> inside lists
  • FixEmpty heading tags left behind by Google Docs are now automatically removed
v2.3.12026-03-25
  • FixHeading conversion now handles spaces before the colon (e.g. "H2 : Title")
  • FixRight-to-left content (Arabic, Hebrew) no longer inverts embedded English text in the editor
  • FixSpacer paragraphs (&nbsp;) are now preserved in the HTML output instead of being stripped
v2.3.02026-03-20
  • NewCJK auto-spacing — automatically insert spaces between CJK characters and English letters or numbers (powered by pangu.js)
  • NewStandalone CJK Auto-Spacing tool page with before/after examples, FAQ, and SEO-optimized bilingual content
  • NewChinese UI text auto-spacing — zh-TW interface text now has proper CJK–Latin spacing
  • FixMobile toolbar no longer floats and follows scrolling — stays pinned at the bottom of the editor
  • FixMobile toolbar buttons now scroll horizontally instead of overflowing
  • FixFind & Replace inputs no longer break out of the container on narrow screens
v2.2.12026-03-20
  • FixHeading conversion now uses the text prefix (e.g. H3:) to set the heading level, even when the content is already inside a different heading tag
v2.2.02026-03-18
  • NewAI-Powered Title to SEO Slug — Convert blog titles in any language to SEO-friendly English slugs in under 10 seconds
  • NewSlug generator toggle on the main page — generate slugs right after editing, above the fold
  • NewTable support — pasted tables from Google Docs now render correctly
  • NewRemove <br> after headings cleanup option (on by default)
  • NewPartial text selection copy in the HTML code view
  • NewSticky Clean HTML button at the bottom of the page
  • ImprovedHeading conversion now strips prefixes from existing heading tags and supports Chinese full-width colon (:)
  • ImprovedShared footer across all pages
v2.1.22026-03-17
  • FixBug fixes and improvements
v2.1.12026-03-16
  • FixBug fixes and improvements
v2.1.02026-03-16
  • NewFormatted/Raw toggle for the HTML code view
  • ImprovedCopying from the code panel now always gives clean, unformatted HTML
v2.0.02026-03-16
  • NewWelcome to Publish Helper — free online tools for content editors
  • ImprovedImproved search engine visibility
v1.1.02026-03-16
  • ImprovedClipboard copy — clean HTML output matches the code view
v1.0.02026-03-16
  • NewRich text editor with Google Docs paste support
  • NewHTML cleanup: strip styles, classes, empty tags, and Google Docs artifacts
  • NewHeading conversion from text prefixes to proper HTML tags
  • NewFind & replace with regex support and saveable presets
  • NewSyntax-highlighted HTML preview with one-click copy