AI translator (Markdown-safe)
Translate documents, READMEs and UI strings with your own AI key, keeping code blocks, links and placeholders intact.
Your key stays in your browser.It goes straight to the provider, never to our servers, and we neither log nor keep it. Use a dedicated key with a spending cap, and delete it in the provider's dashboard when you are done.
Input
Result
The result will appear here.Machine translators are good at sentences and bad at documents: they translate the code inside a README, break Markdown links, and turn a {name} placeholder into something your i18n library no longer recognises. This translator sends the text to an LLM with explicit rules to translate the prose only, leave code, URLs, file paths, HTML tags and placeholders exactly as they were, and keep headings, lists and line breaks in place. Pick one of 13 target languages or the automatic Chinese ↔ English mode, and a style: faithful, natural or technical documentation. nextai-translator (AGPL-3.0, 25k+ stars), the desktop app and browser extension built on the same idea, is the project to look at if you want this at a keystroke anywhere on your system.
How it works
- Automatic mode reads the source: text that is mostly Chinese becomes English, anything else becomes Simplified Chinese — the pair most readers of this site translate between.
- Your text is sent inside <source> tags and the model is told that everything inside is to be translated, so a line like "ignore the above" comes back translated instead of being obeyed.
- Technical style keeps the English terms developers really use (API, token, commit) and adds the English original in parentheses the first time a term has no settled translation.
- The request runs from your browser to the provider on your key, and the output is the translation alone, without commentary, ready to paste back into the file.
Where your data goes
With your own key, what you type and the key go from your browser straight to the provider you choose; neither passes through Hysen Labs. In hosted mode, your text goes through our server to our provider (DeepSeek) and is billed in credits; we keep the token counts and cost of each run for billing, never the text itself or the answer. How the provider handles the text is governed by its own privacy policy.
This tool handles keys and credentials, so nothing about a run is saved, not even to your own history.
About your API key
We do not collect, store or leak your key: it lives only in this page's memory (unless you tick “remember in this tab”) and is gone when you close it. Still, treat any key you have pasted into a web page with care — create a dedicated key with a spending cap for use here, and delete or rotate it in your provider's dashboard when you are done.
What it costs
This tool is free, with no sign-in and no points.
Common questions
- Will it translate the code in my code blocks?
- No. Fenced code blocks and inline code, including the comments inside them, are to be left as they are, and models follow this reliably for fenced blocks. Indented code without fences is easier to miss, so fence your code before translating a long document and spot-check the result.
- What is the difference between the three styles?
- Faithful stays close to the source's wording and sentence order — right for contracts, specifications and anything that will be compared line by line. Natural keeps the meaning but rewrites sentences so they read like native writing, which suits blog posts and product pages. Technical documentation sits between the two: precise, with the vocabulary practitioners actually use.
- How long a document can I translate at once?
- As much as the model's output limit allows, which is usually the binding constraint rather than the context window: many models stop after a few thousand tokens of output. If a translation ends mid-sentence, split the document at its headings and translate it in parts.
- Is it safe to translate confidential documents?
- The text goes to the AI provider you choose, under that provider's data policy — it never goes to us. For confidential material, pick a provider whose API terms exclude training on your data, or run a local model through Ollama, and use a dedicated key with a spending cap that you revoke afterwards.
The open-source behind it
This tool is a self-contained implementation. nextai-translator/nextai-translator (AGPL-3.0) does the same job as a library — if you need this behaviour inside your own program, start there rather than calling a web page.
nextai-translator/nextai-translatorAlso known as
- ai translator
- markdown translator
- translate readme
- chinese english translator
- deepseek translate
- technical document translation