Translate an HTML Page — Tags and Markup Stay Put
Translate an .html page — every tag, attribute and link stays exactly where it was.
- Tags and attributes kept
- Links and markup untouched
- 188 languages, up to 50 MB
Free · Files deleted in 1 hour
Translate other formats
How to translate an HTML file
- Upload your HTML fileDrag in an .html or .htm file — one page at a time.
- Pick languages & modeChoose the source (or Auto-detect) and target language, then keep the page as it is, which preserves the layout, or pull the text out into an editable format.
- Translate & downloadWe translate it in the background, with a progress bar, and hand you the file.
Translate an HTML Page Without Touching Its Markup
Upload an .html or .htm page, choose a language, and get the same page back with its prose translated and every tag, attribute, class name, id, inline style and script exactly where it was. Translation is an edit of the text between the tags, not a rewrite of the file, so the page still validates, still styles and still runs. What comes back is an .html file you can open in a browser, deploy to a server or diff against the original in any editor.
A sentence with a link or a bold phrase inside it is translated as one sentence, so the words can move around the link as the new language needs and the inline tags stay wrapped around the words they belong to. Each list item, table cell and heading is its own unit, so the page's hierarchy survives. Beyond the visible text, the parts of a page people read in other ways are translated too: the title, alt text on images, title and placeholder attributes, aria labels, option labels and button captions, and the meta description along with the Open Graph and Twitter titles and descriptions that social cards and search results show. Code, kbd, samp and var elements are protected, and anything the page marks translate=“no” or class=“notranslate” is left alone by default, as a browser translator would; a switch translates those parts too. Scripts and style sheets are code and are never translated — but where an inline script, a comment or a data attribute holds an exact copy of the page's prose, that copy is updated as well, so the page does not flip back to the original language the moment it runs.
The lang attribute is set to the target language and dir to rtl or ltr when the direction changes, the charset declaration is made UTF-8, and every translation is escaped for where it lands, so no translation can add or break markup. Upload one .html or .htm file per job; a multi-page site is translated page by page, and a live URL is not fetched. Files up to 50 MB are accepted, and a PDF or plain-text copy can be chosen under Download as instead. Translating a page is free to start and works from any browser, and the page you upload and the translated one are deleted within an hour and never used to train models.
- Every tag, attribute, class, id and inline style left untouched
- Sentences with a link or bold inside translated whole, so word order can move
- Alt text, titles, placeholders, aria labels and meta descriptions translated too
- translate=“no” and notranslate honoured, with a switch to translate them anyway
- Scripts and styles never translated; copies of prose inside them kept in step
- lang and dir updated, charset made UTF-8, every translation escaped for its place
Frequently asked questions
Will my CSS and JavaScript survive?
Yes. Style sheets and script code are never translated. Where an inline script or a data attribute holds an exact copy of the page's prose, that copy is updated to match the translation so the page does not revert when it renders, but the code around it is left alone.
Are link hrefs translated?
No. An href is a URL, not a sentence. The visible text inside the link is translated, the destination is kept exactly as it was, and the link still wraps only its own words rather than spreading across the sentence.
Are alt text, titles and meta descriptions translated?
Yes. Alt text on images, title and placeholder attributes, aria labels, option labels, button captions, the page title, and the meta description along with the Open Graph and Twitter titles and descriptions are all translated. Class names, ids, data bindings and URLs are not.
What about parts the page marks do-not-translate?
Text under translate=“no” or class=“notranslate”, usually brand names, code samples or quotes, is left as it is by default, the way browser translators treat it. Switch on “Also translate parts the page marks do-not-translate” to translate it too; code, scripts and styles stay untouched either way.
What happens to the lang attribute?
It is set to the target language, and dir is set to rtl or ltr when the new language reads in the other direction, so browsers, screen readers and validators all see a page that says what it actually is.
Can I translate a whole website this way?
One page at a time. Upload a single .html or .htm file per job and translate each page of a site separately. A live URL is not fetched and no domain is crawled, so the tool suits a page you hold as a file.