---
title: "Translate HTML files"
description: "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."
canonical: "https://ai-glot.com/docs/formats/html"
updated: "2026-10-12"
---

# Translate HTML files

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.

> **Tip: Try it free**
>
> Drop a page of up to 2 MB on the free [HTML translator](https://ai-glot.com/file-formats/html-translation) to try it with no account, five files a day. The app, the API and the CLI take HTML files up to 8 MB.

## 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

**Page and metadata**

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.

**Email template**

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.

**Visible text only**

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.

**Buttons and labels**

Short interface wording with a consistent register.

Translate into Italian. Use short, imperative wording for buttons and keep the product name unchanged.

**Help article**

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](/docs/platform/glossaries) carries over.
- **A folder of pages.** Put the files in a [ZIP](/docs/formats/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](/docs/formats/markdown) and [plain text](/docs/formats/plain-text) for docs and notes.
- [Other XML](/docs/formats/xml) for feeds and structured documents.
- [All file formats](/docs/formats)
