The short answer
If you sell to buyers both in Indonesia and abroad, publish separate URLs for each language, link them with hreflang tags, and translate the parts search engines read, not just the body text. Do not rely on a translate widget, and do not redirect visitors by IP address.
230 million
internet users in Indonesia in October 2025, 80.5% of the population.
That domestic audience searches mostly in Bahasa Indonesia. Your overseas buyers search in English. One site can serve both, if each page exists properly in each language.
Pick a URL structure
| Structure | Example | Notes |
|---|---|---|
| Subfolders | example.com/id/produk | Easiest to run; one domain gathers all authority |
| Subdomains | id.example.com | Works, but feels like two sites to manage |
| Separate domains | example.co.id + example.com | Strong local signal, double the upkeep |
For most exporters we recommend subfolders, with the main market's language at the root. Astro, WordPress with a multilingual plugin, and most modern CMSs support this directly.
Tell Google which page is which
hreflang tags tell Google that two URLs are the same page in different languages, so it shows the right one to each searcher. Three rules from Google's documentation catch most mistakes:
- Every version lists every version, including itself. If the Indonesian page points to the English one but not back, Google ignores the pair.
- Use full URLs, with https.
- Language codes follow ISO 639-1, so Indonesian is
id, optionally with a region such asid-ID. A region on its own is not valid.
<!-- On both https://example.com/products/valves and https://example.com/id/produk/katup -->
<link rel="alternate" hreflang="en" href="https://example.com/products/valves" />
<link rel="alternate" hreflang="id" href="https://example.com/id/produk/katup" />
<link rel="alternate" hreflang="x-default" href="https://example.com/products/valves" />x-default marks the fallback for everyone whose language matches neither version. The same information can go in your XML sitemap instead of the page head; doing both adds nothing.
Translate what search engines read
- Page title and meta description.
- URL slugs, so
/id/produk/katuprather than/id/products/valves. - Headings, image alt text and button labels.
- Structured data such as Organization and Service descriptions. See Schema markup for B2B websites.
- Form labels, error messages and the thank-you page.
Mistakes we see on exporter sites
- 1.Machine-translated pages published unchecked. Technical terms in valve, chemical or logistics catalogues go wrong in ways a buyer notices immediately.
- 2.Redirecting by IP. An Indonesian buyer travelling, or a foreign engineer in Jakarta, gets the wrong language with no way out. Show a language switcher instead.
- 3.Half-translated sites. If the Indonesian version has five pages and the English one forty, link only the pairs that exist.
- 4.Forgetting the second language after launch. New case studies appear in one language only. Make translation part of the publishing step.
Need a phrase for the switcher? "English" and "Bahasa Indonesia", each written in its own language, beat flags. Flags stand for countries, not languages.
Frequently asked questions
- What is the hreflang code for Indonesian?
- id, from ISO 639-1. You can add a region, as in id-ID, but a region code on its own is not valid.
- Should a bilingual site use subfolders or subdomains?
- Subfolders such as example.com/id/ are usually easiest: one domain, one CMS and one place for links to build authority. Subdomains and separate domains work but double the management.
- Is Google Translate on my site good enough?
- No. Widget translations are not separate indexable pages, and machine translation of technical B2B content often gets terms wrong. Publish reviewed translations on their own URLs.
- Does Google use the HTML lang attribute?
- No. Google says it detects language from the content itself and does not use hreflang or the lang attribute for that. Set lang anyway for accessibility.




