To translate subtitles with a local LLM in Subtitle Edit, start a model server on your own computer with Ollama or LM Studio, then open Translate > Auto-translate…, pick Ollama (local LLM) or LM Studio (local LLM), check the URL and the model name, and click Translate. The subtitle text then goes to that server on your machine instead of an online service. Below: the default addresses in Subtitle Edit 5.3.0, prompts you can paste, batch settings for whole films, and the checks to run before you save.

What you need before you start

  • Subtitle Edit 5.3.0, the current stable version (released October 14, 2026; 5.4.0 is still a release candidate). It's free and open source, for Windows 10 22H2 or newer, macOS 12 or newer (macOS 14 recommended) and Linux. Version 5 is a rebuilt, cross-platform app; its developer recommends Subtitle Edit 4 for Windows 7 or 8 and for older, slower computers. This guide follows the menus of version 5.
  • A local model server: Ollama or LM Studio. Each downloads open-weight models and answers requests on a local address. Subtitle Edit can also run its own llama.cpp server for you.
  • A subtitle file, usually SRT. If you only have a video, you can create the subtitle in Subtitle Edit with a local Whisper engine first (see below). New to the format? Our guide on what an SRT file is covers it.

Local models need disk space and memory. Ollama's documentation says models can take tens to hundreds of gigabytes in total; LM Studio recommends at least 16GB of RAM and, on Windows, at least 4GB of dedicated video memory. You need the internet once to download the app and a model; after that, translating works offline.

Which local engine to pick in Subtitle Edit

The Auto-translate window in Subtitle Edit 5.3.0 lists several local engines. They differ in who runs the model and in how much context each request carries.

Local translation engines in Subtitle Edit 5.3.0 (from its documentation and source code)
Engine in the listWho runs the modelDefault addressSends
Ollama (local LLM)Ollamahttp://localhost:11434/api/generateYour prompt plus a block of lines
Ollama advanced (local LLM)Ollamahttp://localhost:11434/v1/chat/completionsBatches with earlier lines, synopsis and glossary
LM Studio (local LLM)LM Studiohttp://localhost:1234/v1/chat/completionsYour prompt plus a block of lines
LM Studio advanced (local LLM)LM Studiohttp://localhost:1234/v1/chat/completionsBatches with earlier lines, synopsis and glossary
llama.cpp (local LLM) and llama.cpp advancedSubtitle Edit starts llama-server itselfManaged by Subtitle EditSame two styles
OpenAI Compatible APIAny server you point it atYou enter itYour prompt plus a block of lines
  • You already use Ollama or LM Studio: pick that engine. Your models are already there, and the developer notes that Ollama and LM Studio handle the graphics card themselves.
  • You want the fewest moving parts: pick llama.cpp. Subtitle Edit downloads llama.cpp and a model from a curated list and starts the server for you.
  • You're translating a whole episode or film: pick an advanced engine, so names, pronouns and terms stay consistent.
  • The model runs on another computer: change the URL, or use the OpenAI Compatible API engine.

Set up Ollama as your local model server

Ollama serves its API on http://localhost:11434. Its documentation lists Windows 10 22H2 or newer and macOS Sonoma (14) or newer; on a Mac, M-series chips use the GPU, Intel Macs the CPU only.

  1. Download Ollama from ollama.com and open the app once.
  2. Download a model in a terminal. The name below is an example from the default list Subtitle Edit suggests for Ollama:
Terminal
ollama pull gemma4
ollama ls
  1. Note the exact name that ollama ls prints (for example gemma4:latest). You'll enter it in Subtitle Edit.
  2. After the first request, ollama ps shows in its PROCESSOR column whether the model runs on the GPU, the CPU or both.

A model stays in memory for five minutes after the last request, so the first request after a pause includes loading time. And the context window (how much text the model sees at once) depends on video memory: Ollama documents a 4k-token default below 24 GiB of VRAM. For the advanced engine with many lines of context, raise it with the OLLAMA_CONTEXT_LENGTH variable or the slider in the Ollama app's settings.

You can also save low randomness and a larger context in your own model variant with a Modelfile. (example values):

Modelfile
FROM gemma4
PARAMETER temperature 0.2
PARAMETER num_ctx 8192
Terminal
ollama create subtitle-translator -f Modelfile

In Subtitle Edit, subtitle-translator is then the model name.

Set up LM Studio instead

LM Studio is a desktop app with a model browser and a built-in server, for Apple Silicon Macs with macOS 14 or newer, Windows PCs (x64 with AVX2, or ARM) and Linux on x64 or ARM64.

  1. Install LM Studio and search for a model in the Discover tab. Downloads come in versions such as Q3_K_S or Q8; LM Studio suggests a 4-bit option or higher if your computer can run it.
  2. Load the model, open the Developer tab and switch on Start server, or run lms server start in a terminal.
  3. Keep the default port, 1234, which is what Subtitle Edit expects. It's under Server Port in the server settings.
Terminal
lms server start
lms server status

LM Studio serves whatever model is loaded, so the model field in Subtitle Edit can stay empty. With Just in Time Model Loading switched on in the server settings, LM Studio loads a requested model when the request arrives.

Connect Subtitle Edit to your local model, step by step

  1. Open your subtitle with File > Open, and the video if you want to check lines against the picture.
  2. Choose Translate > Auto-translate….
  3. Under Engine, choose Ollama (local LLM) or LM Studio (local LLM).
  4. Check URL: http://localhost:11434/api/generate for Ollama, http://localhost:1234/v1/chat/completions for LM Studio. Change it only for another port or another computer.
  5. Fill in Model, or click the browse button next to it. Subtitle Edit then asks the server for its models (Ollama through /api/tags, LM Studio through /v1/models). An empty list means the server isn't reachable yet.
  6. Choose the languages under From and To; the button between them swaps the two.
  7. Click Translate. The grid fills with the original text next to the translation.
  8. Read the result, click a row's translation to edit it, then click OK.
  9. Save with File > Save as… under a new name, such as film.de.srt, so the source file stays as it is.

To translate only some lines, select them in the grid, right-click and choose Auto-translate. With no original open, you can tick Translate in place (do not create original), and the translation replaces those lines.

Card listing Subtitle Edit's local translation engines with their default URLs and what to enter in the Model field
Default addresses of the local engines in Subtitle Edit 5.3.0, from its source code and documentation.

The settings behind the gear button

The gear button next to the engine opens settings that decide how lines are grouped into requests:

  • Line merge: Default sends several lines together; Translate each line separately sends one per request. That means less context for the model, but no chance of text moving between lines.
  • Max bytes per request: how much text goes into one request; 1000 in the 5.3.0 defaults. Smaller blocks suit small models and short context windows.
  • Delay in seconds between requests: mainly for rate-limited online services.
  • Do not translate lines in music symbols (♪ … ♪): leaves song lines untouched.
  • Prompt text, with Reset prompt to default.

In the prompt, Subtitle Edit replaces {0} with the source language and {1} with the target language, as English names such as "German". For chat models it sends your instruction first and the subtitle text after it. Its source code shows that line breaks inside a subtitle travel as a <br /> marker that it turns back into a line break, which is why the prompts below ask the model to keep those markers.

Some translation models expect a completion format instead: the text inside the prompt and a target-language cue at the end. For these, {2} marks where the text belongs. Subtitle Edit's auto-translate documentation shows the exact template for MiLMMT-46; copy it from there, because the cue must match what the model was trained on.

Choosing a model for subtitle translation

There is no single best model, and new ones appear often. Look for three things:

  • It fits your memory. A model that doesn't fit into video memory still runs, partly on the CPU, but much more slowly.
  • It knows your target language. Chat models differ a lot by language; dedicated translation models such as TranslateGemma are trained for this task.
  • It follows format instructions. For subtitles, keeping line counts and tags matters as much as fluent wording.

Subtitle Edit's documentation suggests a start for its llama.cpp engine: Index-Translate 9B (Q4_K_M, a 5.8 GB download) for translating from English, Index-Translate 2B for limited memory, and TranslatePsy-AfriSLM for the 19 African languages it covers. The maintainers base this on small tests of about 24 lines and advise trying a few lines before a whole file. Most curated models are under 8 GB; TranslateGemma 27B needs roughly 20 GB of video memory.

For Ollama, the default model list in Subtitle Edit 5.3.0 is gemma4, gemma4:e4b, qwen3, qwen3:4b, llama3.2 and mistral-small3.2: suggestions, not a ranking. To choose, translate ten varied lines (dialogue, a joke, italics, a song line) with two candidate models and compare them in the grid.

Translation prompts you can copy

Paste these into Prompt text in the engine settings, or under Advanced… for the advanced engines. Leave {0} and {1} as they are.

A strict all-purpose prompt

A stricter version of the default that spells out the rules models tend to break.

Strict subtitle prompt
Translate the following subtitle text from {0} to {1}.
Rules:
- Keep the same number of lines, in the same order.
- Keep every line break and every <br /> marker exactly where it is.
- Keep formatting tags such as <i>, </i>, <b>, </b> and <font ...> around the matching words.
- Do not merge, split, add or remove lines.
- Translate the meaning, not word for word, in natural spoken {1}.
- Do not censor or soften the dialogue.
Reply with the translated text only: no notes, no quotes, no explanations.

Formal or informal address

Many languages force a choice between formal and informal "you". Fill in the brackets before pasting.

Prompt with a fixed form of address
Translate the following subtitle text from {0} to {1}.
Characters speak to each other [informally / formally]: in German use [du / Sie], in French [tu / vous], in Spanish [tú / usted]. Keep that choice in every line.
Keep the same number of lines, every line break, every <br /> marker and every formatting tag.
Reply with the translated text only.

The advanced engines also have a Formality setting (Default, Formal, Informal) that adds such an instruction for you.

Short lines for fast reading

Translations often run longer than the source. This version asks for subtitle-length wording.

Prompt for short, readable lines
Translate the following subtitle text from {0} to {1} for [viewers of a fast-paced comedy series].
Subtitles must be read in a few seconds: keep each line about as long as the source line, drop filler words, and prefer short everyday words.
Never move text from one line to another. Keep every line break, every <br /> marker and every formatting tag.
Reply with the translated text only.

Regional variants

Name the variant you want, or the model may mix them.

Prompt for a regional variant
Translate the following subtitle text from {0} to {1}, written for [Latin American Spanish / Spain / Canadian French / Swiss German] viewers. Use the vocabulary and spelling common there.
Keep the same number of lines, every line break, every <br /> marker and every formatting tag.
Reply with the translated text only.

Our guide on how to translate subtitles lists the language rules worth checking by hand.

Whole episodes and films: the advanced engines

The plain engines know nothing about the rest of the film. The advanced engines (llama.cpp, Ollama and LM Studio advanced) add context to each request. Select one and click Advanced…:

  • Synopsis: a short description of the content, sent with every request.
  • Glossary: fixed translations, one per line, as source term = translation.
  • Prompt text: your instructions instead of the built-in prompt; empty keeps the built-in one.
  • Previous lines as context: translated lines sent along with each batch (default 12).
  • Lines per batch: default 10. After an invalid reply, Subtitle Edit retries the batch and then halves it.
  • Keep line breaks and Temperature (unset means the model's curated value or 0.2).

The context size setting only affects the llama.cpp server Subtitle Edit starts; Ollama and LM Studio manage their own, so a long glossary may need a larger context there.

A synopsis can be three sentences. Replace the brackets:

Synopsis
[Genre: family drama, contemporary, set in a small coastal town.]
[Main characters: Ana (teenager), her father Tomás, her teacher Ms. Reyes.]
Tone: warm, casual dialogue with some sarcasm; the teenagers use slang.

A glossary keeps names and recurring terms stable:

Glossary
Ms. Reyes = Frau Reyes
the Lighthouse Café = das Lighthouse Café
grounded = Hausarrest

And instructions for the advanced engine's Prompt text field:

Advanced engine instructions
You translate film subtitles from {0} to {1}.
Use the synopsis and glossary as the authority for names, terms and tone.
Each line is one subtitle on screen: translate it on its own line, keep its line breaks and formatting tags, and never move words to a neighboring line.
Stay consistent with the earlier lines you are shown.

No subtitle yet? Create one with local Whisper first

Choose Video > Speech to text…, pick an engine such as Whisper CPP, Purfview Faster Whisper XXL or WhisperX, a model and the audio language (or auto-detect), then click Transcribe. Engines and models download on first use; larger models usually give better text but take longer and need more space.

  • Post-processing can fix casing, add periods, merge short lines and split long ones.
  • Show quality report after transcription lists lines that are too short, too long, overlapping, repeated or only describe sound, such as "[Music]". Fix them before translating, or every error is copied into the other language.
  • Translate to English turns non-English speech straight into English subtitles. For other targets, transcribe first, then use Auto-translate.
  • Batch mode transcribes several videos and saves an SRT file next to each.

Our sister guide on turning audio into an SRT file covers other ways to get a first subtitle, and syncing subtitles helps if the timing is off.

Check the translation before you save

Subtitle Edit's checks use your active profile under Options > Settings… > Rules (single line max length, max chars/sec, max number of lines and more), with ready-made profiles such as Netflix.

  1. Line length and line count. After translating, Subtitle Edit re-breaks rows that exceed the line limits, with the target language's rules. Song lines and Chinese, Japanese or Korean targets are left alone.
  2. Reading speed. Tools > List errors… (Ctrl+F8) shows lines that are too long, have too many lines or are read too fast; Go to jumps to each. Our guide to subtitle fonts explains common line lengths and reading speeds.
  3. Untranslated lines. Look for rows where the original and translation columns match, then select them and run Auto-translate again.
  4. Broken italics. The documentation doesn't describe special protection of <i> tags during auto-translate, so check them: Tools > Fix common errors… has a Fix invalid italic tags rule and shows each fix first.
  5. A second opinion. Tools > AI review… (Ctrl+Alt+R) proofreads with a local model through llama.cpp, Ollama or an OpenAI-compatible server. Nothing changes until you apply a suggestion, and suggestions that add or remove formatting tags are discarded.
  6. Delivery rules. Tools > Check and fix Netflix errors… checks duration, characters per second, line length, italics and more.

In AI review, Edit prompt… lets you tailor the instructions; {language} becomes the detected subtitle language:

AI review prompt for a translated file
Proofread these {language} subtitles, which were machine-translated.
Flag spelling, grammar, punctuation and casing errors, wrong gender or number agreement, and words left in the source language.
Do not rewrite lines that are correct, never touch song lyrics, and keep the meaning and length of each line.

Local model or cloud engine: what leaves your computer

Subtitle Edit's README says the app doesn't collect or transmit the content of your files. With an online engine, the text goes to that provider and its privacy policy applies. Translating locally keeps unreleased films, client videos and interviews on your machine.

Where the subtitle text goes, by engine (from each vendor's documentation, November 2026)
EngineWhere the text goesWhat the vendor says
Ollama, local modelYour computer (127.0.0.1 by default)Ollama doesn't see your prompts or data when you run locally
Ollama, cloud modelOllama's serversProcessed to provide the service, not stored or logged, never used for training
LM StudioYour computerServer requests stay local; chat input doesn't leave your device
DeepL API Free (Subtitle Edit's default DeepL address)DeepLFree services: texts are processed for a limited time to train and improve DeepL's models
DeepL API ProDeepLTexts aren't stored permanently or used to improve the service
Google Cloud Translation (V2 API)GoogleText is held briefly in memory and not used to train Google's translation features

Two cautions. To keep Ollama fully local, use local models only, or switch its cloud features off with OLLAMA_NO_CLOUD=1. And a server exposed to your network (OLLAMA_HOST, or Serve on Local Network in LM Studio) can be reached by other devices; LM Studio recommends turning on authentication then. For files under contract or with personal data, your client's terms and each vendor's terms apply; this isn't legal advice.

Troubleshooting: common errors and fixes

Translation fails at once (connection refused). The server isn't running or listens elsewhere. Start Ollama (or ollama serve), or Start server in LM Studio's Developer tab. Compare its port with the URL in Subtitle Edit: 11434 for Ollama, 1234 for LM Studio. Show technical details in the error shows the URL used. An empty model browse list has the same cause.

Model not found (Ollama answers 404). The name doesn't match exactly. Copy it from ollama ls, including the tag after the colon.

Very slow, or a timeout. The model is probably too big for your video memory. Check ollama ps, pick a smaller or more compressed model, or lower Max bytes per request. In the 5.3.0 source, the Ollama engine waits up to 25 minutes per request, the LM Studio engine 15 minutes.

Garbled output: notes, quotes, the prompt repeated. Use the strict prompt and a lower temperature. Completion-style models need the {2} template; without the target-language cue, they tend to echo the source, per Subtitle Edit's documentation.

Lines shifted or merged. Switch Line merge to Translate each line separately, or use an advanced engine. Changes merged on GitHub on November 2 and 3, 2026, after 5.3.0, reject more shifted replies.

Some lines stay in English. Retranslate those lines. The documentation notes that TranslateGemma can return English lines when several lines share one request, and that Subtitle Edit detects this and retries.

Where the logs are. Ollama: server.log in %LOCALAPPDATA%\Ollama on Windows, ~/.ollama/logs/server.log on a Mac. LM Studio: lms log stream.