Bulk H1 Translator
Translate a CSV of H1 headings into English in bulk, with a local Ollama model or the OpenAI API.
#about
Translates every H1 in a CSV into English, adding a translated_h1 column beside your original columns.
Each row is a separate request to an OpenAI-compatible endpoint, a local Ollama server by default or the OpenAI API, and the model must support JSON schema responses.
Rows that fail are marked as errors.
Empty and already-English H1s are still sent, so on a paid endpoint they cost a call.
Run it locallyAPI key or local model
- Platform
- Streamlit app you run on your own machine (needs Python 3.x)
- Input
- CSV with an H1 column and a Language column (Screaming Frog format works out of the box)API endpoint URL and optional API key
- Output
- CSV (translated_h1s.csv) with all original columns plus a translated_h1 column holding the English translation of each H1. Rows that fail hold an error message in that column.
- Category
- Content
Use cases
- Preparing international crawl exports for English-language analysis
- Auditing hreflang H1 consistency across locales
- Pre-processing multilingual title data before keyword mapping
#features
- Any OpenAI-compatible endpoint (Ollama local default, or OpenAI API)
- Structured JSON schema response format for reliable parsing
- Retries per row (1-5, default 3) with 1-second backoff
- Column mapping defaults to Screaming Frog H1-1 and Language
- Preserves all original CSV columns in output
- Error count reported separately from successful translations
#how-to-use
- Set the base URL in the sidebar (Ollama default or OpenAI)
- Enter the model name and optional API key
- Upload your CSV and map the H1 and Language columns
- Click Translate H1s
- Review the translated_h1 column in the results
- Download the full CSV with translations
#faq
- Does this require an OpenAI API key?
- Only if you use the OpenAI endpoint. By default it points at http://localhost:11434/v1 (Ollama running locally), which accepts any placeholder API key value. To use OpenAI, change the base URL to https://api.openai.com/v1 and enter your real key.
- Are empty or already-English rows still sent to the model?
- Yes. Every row is sent as its own request, including empty H1s and ones already in English. The prompt asks the model to return those unchanged, so on a paid endpoint they still cost a call. Filter them out of the CSV first if cost matters.
- How does it handle rows that fail?
- Each row is retried up to the configured retry count (1-5, default 3) with a 1-second pause between attempts. If all retries fail, the translated_h1 value is set to an error string starting with 'Error:'. The final error count is shown in the results summary.
- Can it translate into languages other than English?
- No. The prompt translates from the language in your Language column into English only. To target another language you would need to edit the prompt in the script. The H1 and Language columns default to the Screaming Frog names (H1-1 and Language) and can be changed with the dropdowns.
- What model name do I enter?
- Whatever your endpoint calls the model. The default, local-model, is a placeholder: with Ollama enter the name of a model you have pulled, and with OpenAI enter gpt-6-luna or gpt-6.1-terra. Each request uses a JSON schema response format, so the model and endpoint must support structured output.
/contact
Want me to run this for you? I run this tool as a managed service, or build something custom around your data. You get the insights without touching the code.