Translate HTML files
Translate .html, .htm and .xhtml pages up to 8 MB. Visible text, alt text, titles and meta descriptions are translated while tags, scripts and styles stay intact.
HTML files (.html, .htm and .xhtml) are accepted up to 8 MB. AI Glot translates what a visitor reads and leaves the markup as it was: tags, classes, attributes, scripts and styles come back exactly as written.
What is translated, and what is left alone
| Translated | Left as it was |
|---|---|
| Paragraphs, headings, lists and table cells | Tags, classes and attribute values such as href |
title, alt, placeholders, aria labels and the meta description | script, style, code and preformatted blocks |
| Links and emphasis inside a sentence, moved with the right words | Anything marked translate="no" or class="notranslate" |
When you translate into one language, the page’s lang attribute is updated to the target language.
What you can ask
Translates the visible text and the search-facing fields.
Translate the page into French, including the title, alt text and meta description. Keep the brand name Acme in English.
Keeps the table layout that holds an email together.
Translate this email template into German. Keep merge tags such as {{first_name}} and the unsubscribe link text pattern unchanged.
Leaves the metadata in the source language.
Translate only the visible body text into Spanish. Do not translate the title, alt text or meta tags.
Short interface wording with a consistent register.
Translate into Italian. Use short, imperative wording for buttons and keep the product name unchanged.
For a help centre export: keeps code samples untouched.
Translate this help article into Portuguese. Leave code samples, file paths and URLs unchanged.
Good to know
- One target language per upload. A page holds one language. If you ask for two, the plan translates one and says so. Run the file once per language: your glossary carries over.
- A folder of pages. Put the files in a ZIP to translate them in one job and keep the folder layout.
- Placeholders. Template tags that look like text, such as merge fields, are best named in your instruction so they are kept.
- Ceiling. 8 MB. Output filter: not available, the whole file comes back.
Related
- Markdown and plain text for docs and notes.
- Other XML for feeds and structured documents.
- All file formats