Age of Consent and Sex Laws in Bali: What Indonesia's 2022 Criminal Code Means for Foreign Tourists
Indonesia's 2022 revised Criminal Code raised the age of consent and significantly expanded sexual offence definitions. Foreign tourists who misread enforcement or rely on outdated information face serious arrest risk. Here is what the law actually says.
By Larry Timothy • 3 May 2026 • 14 min read
This article provides factual legal information about Indonesian law as it applies to foreign visitors. It is written as a safety resource to help tourists understand their legal obligations and avoid criminal liability. It is not legal advice and does not substitute for consultation with a qualified Indonesian attorney. Laws in this area are subject to ongoing implementation changes as the 2022 KUHP enters full force. If you face legal proceedings in Indonesia, contact your country's embassy and an Indonesian criminal defence lawyer immediately.
- Indonesia's new Criminal Code (KUHP 2022) sets the age of consent at 19 years old as the general standard for sexual relations involving adults. This is significantly higher than many tourists expect.
- The previous law was more complex — the old KUHP referenced ages of 15 and 16 in different provisions, which created widespread misunderstanding that the age of consent was 16. This was never an accurate characterisation of Indonesian law as a whole.
- Your home country may also prosecute you. Many countries — including Australia, the UK, the US, Canada, and EU member states — have extraterritorial child sex tourism laws that apply to their nationals regardless of where the act occurred.
- Indonesian law does not distinguish neatly between "consensual" relations with a minor and non-consensual ones in the way some Western legal systems do. The age of the person is the primary legal fact. Claimed consent of a minor has no legal weight.
- Bali's tourism environment — including nightlife, dating apps, and interactions with young locals presenting themselves as adults — creates specific misidentification risks that courts do not treat as mitigating factors.
- Same-sex relations remain in a legal gray zone in Indonesia outside of Aceh province, but regional morality bylaws and conservative enforcement in Bali create practical risks that tourists should understand.
Table of Contents
- The History: Why Tourists Have Always Misunderstood Indonesian Law
- The 2022 KUHP Reform: What Changed and What It Means
- Before vs. After: The Legal Framework Comparison
- Marriage Age vs. Consent Age: An Important Distinction
- Grooming and Exploitation Under Indonesian Law
- Extraterritorial Prosecution: Your Home Country Can Also Charge You
- How Bali's Tourism Environment Creates Specific Misunderstanding Risks
- Real Cases: Foreigners Arrested for Sexual Offences in Bali
- How Indonesian Courts View Age and Claimed Consent
- LGBTQ Context: The Gray Zone
- What Tourists Must Know Before Going Out in Bali
The History: Why Tourists Have Always Misunderstood Indonesian Law
The widespread misunderstanding about Indonesia's age of consent has a specific origin: the old Criminal Code (KUHP, inherited from Dutch colonial law) contained fragmented provisions with different age thresholds depending on the nature of the act and the relationship between parties. Legal observers noted that the old KUHP referenced ages of 15 and 16 in different sexual offence provisions, which led to the incorrect popular claim that Indonesia's "age of consent" was 16.
This characterisation was always an oversimplification. Indonesian courts and prosecutors never treated 16 as a universal threshold that legitimised sexual relations between adults and young people. The old code's fragmentation meant that prosecutors had significant discretion in how charges were framed, and that discretion was frequently exercised aggressively against foreign defendants.
Additionally, Indonesia's Child Protection Law (Law No. 23 of 2002, as amended by Law No. 35 of 2014) defined a child as anyone under 18, and imposed criminal penalties for sexual acts with children regardless of the provisions in the general KUHP. This meant that even under the old framework, a foreign national who had sexual relations with a 16 or 17-year-old could be charged under Child Protection Law provisions, not only the KUHP.
The 2022 KUHP reform clarified and in important respects tightened this framework. Foreign tourists who have not updated their understanding of Indonesian law since 2022 may be operating on dangerously outdated assumptions.
The 2022 KUHP Reform: What Changed and What It Means
Indonesia's new Criminal Code — Law No. 1 of 2023 on the Criminal Code (KUHP Nasional) — was passed in December 2022 and entered into full force on 2 January 2026. It replaced the colonial-era Dutch KUHP that Indonesia had used, with modifications, since independence.
The 2022 KUHP makes the following changes most relevant to this topic:
Age of Consent Provisions
The new KUHP establishes that sexual relations with a person under 19 years of age who is not your lawful spouse constitute a criminal offence. This applies regardless of claimed consent from the person under 19. The age of 19 represents the legal threshold for adult status in the sexual offence provisions of the new code.
There is a limited exception for sexual relations between young people of similar ages (sometimes called a "Romeo and Juliet" provision in comparative law), but this exception is narrow, does not apply to adults over 21, and is not available to foreign tourists engaging with young locals in a recreational context.
Expanded Sexual Offence Definitions
The 2022 KUHP significantly broadened the definition of sexual violence (kekerasan seksual) beyond physical assault. The new provisions criminalise:
- Sexual harassment (pelecehan seksual), including verbal and digital forms
- Forced sexual relations achieved through psychological pressure, economic coercion, or exploitation of a position of power
- Sexual exploitation, including commercial sexual services
- Distribution of non-consensual intimate images (relevant to the ITE Law as well)
For tourists, the expansion of "coercion" to include economic pressure is significant. Indonesia is a country with substantial economic inequality between foreign visitors and many locals. A sexual relationship where economic benefit — accommodation, gifts, money, employment — flows from a foreign tourist to a young Indonesian can be characterised as exploitation even if no explicit transaction was negotiated.
Child Protection Provisions Retained and Strengthened
The 2022 KUHP retains and strengthens Child Protection Act provisions. Sexual acts with anyone under 18 carry penalties of up to 15 years imprisonment. If the perpetrator is in a position of trust, authority, or dependency relative to the child, penalties increase to up to 20 years. If the act involves organised exploitation or trafficking elements, life imprisonment is possible.
Before vs. After: The Legal Framework Comparison
| Legal Aspect | Old KUHP (Pre-2023) | New KUHP 2022 (In Force Jan 2026) |
|---|---|---|
| Age threshold in general KUHP provisions | Fragmented: 15, 16, or 18 depending on provision | Consolidated: 19 as general adult threshold for sexual offences |
| Child Protection Law threshold | Under 18 (Law No. 35/2014) | Under 18 (retained and integrated) |
| Consent as a defence for under-18 | Not available; age determinative | Not available; age remains determinative under 18 |
| Coercion definition | Physical force or threat of physical force | Expanded to include psychological pressure, economic coercion, exploitation of power |
| Sexual harassment | Limited provisions; primarily physical contact | Explicitly criminalised including verbal, written, and digital forms |
| Penalty range (child victim) | Up to 15 years (with aggravating factors up to death penalty in some cases) | Up to 15 years standard; up to 20 with aggravated circumstances; life imprisonment for organised exploitation |
| Extraterritorial application | Limited provisions | Strengthened; aligns with international child protection frameworks |
| "Grooming" as distinct offence | Not explicitly named; prosecuted under general provisions | Preparation and grooming of minors for sexual purposes explicitly criminalised |
Marriage Age vs. Consent Age: An Important Distinction
Indonesia's Marriage Law was amended in 2019 (Law No. 16 of 2019) to raise the minimum marriage age for both men and women to 19 years, aligning it with the new KUHP's adult threshold. Before 2019, women could legally marry at 16 with parental consent.
Some tourists and commentators have cited the old marriage age as evidence that Indonesian law previously accepted 16 as a sexual consent threshold. This conflation was always legally incorrect — marriage law and criminal consent law operate in different domains — but it has contributed to persistent misunderstanding.
The practical point for tourists: marriage age and consent age are now both 19 in Indonesian law. There is no longer any ambiguity created by the old 16-year marriage threshold. A foreign tourist cannot claim that Indonesian law implicitly accepted sexual relations with a 16 or 17-year-old on the basis of old marriage law provisions. That argument was legally weak before 2019 and is legally untenable today.
Grooming and Exploitation Under Indonesian Law
The 2022 KUHP explicitly names preparatory acts — what other jurisdictions call "grooming" — as a standalone criminal offence when directed at a person under 18 for sexual purposes. Under the new code, the following can constitute criminal grooming:
- Establishing contact with a minor through social media, dating apps, or in person with the intention of facilitating a sexual encounter
- Providing gifts, money, or other benefits to a minor to build trust or dependency
- Exposing a minor to sexual content as preparation for sexual acts
- Arranging meetings with a minor for sexual purposes, even if no sexual act ultimately occurs
The grooming provisions are significant for tourists because they mean that conduct leading up to any sexual act — not only the act itself — is criminalised. Exchanging messages with a young person on a dating app while on holiday in Bali, or buying drinks for someone whose age you are uncertain about, can form part of a grooming prosecution if the overall pattern of behaviour indicates sexual intent toward a minor.
Indonesia's Child Protection Act also addresses sexual exploitation in commercial contexts. Paying for sexual services involving anyone under 18 carries the same penalties as direct sexual assault for the paying party. The customer in a commercial transaction has no lesser liability than the direct perpetrator.
Extraterritorial Prosecution: Your Home Country Can Also Charge You
One of the most significant risks for foreign tourists is that their home country may prosecute them for sexual offences committed in Bali, regardless of whether Indonesian authorities act.
Countries with active extraterritorial child sex offence laws that apply to their nationals abroad include:
- Australia: Division 272 of the Criminal Code Act 1995. Australian citizens and residents can be prosecuted in Australia for child sex offences committed anywhere in the world. Penalties up to 25 years imprisonment.
- United Kingdom: Sexual Offences Act 2003, sections 72 and Schedule 2. UK nationals can be prosecuted for specified child sex offences committed abroad.
- United States: PROTECT Act of 2003. US citizens and permanent residents can be prosecuted federally for sex tourism and child sex offences committed abroad. Penalties up to 30 years.
- Canada: Criminal Code sections 7(4.1) and 151–153. Canadian nationals can be prosecuted for child sex offences committed abroad.
- European Union member states: The EU Directive 2011/93/EU requires member states to establish extraterritorial jurisdiction over child sex offences committed by their nationals abroad. Implementation varies by country but most EU members have applicable statutes.
In practice, extraterritorial prosecutions are triggered when: a person is identified returning from a destination known for sex tourism; law enforcement cooperation between Indonesia and the home country results in evidence sharing; or digital evidence (messages, photographs, transaction records) is discovered during an unrelated customs inspection or device search.
The Australian Federal Police and UK's National Crime Agency have both conducted operations specifically targeting sex tourism in Southeast Asia, including in Bali. These are not theoretical risks.
How Bali's Tourism Environment Creates Specific Misunderstanding Risks
Bali's tourism economy creates conditions where misidentification of age is a genuine risk — but one that Indonesian courts treat as the tourist's responsibility, not a mitigating factor.
Dating Apps and Online Platforms
Dating apps used in Bali — including Tinder, Bumble, and local platforms — are used by individuals of all ages, including minors who misrepresent their age. Profile ages are unverified. Indonesian courts have consistently held that an adult's failure to verify a partner's age does not constitute a defence in criminal proceedings. If the person was under 19 (or under 18 for Child Protection Act purposes), the stated defence of "I thought they were older" carries no legal weight.
Nightlife Context
Bali's club and bar scene — concentrated in Kuta, Seminyak, and Canggu — is accessible to individuals well below the legal drinking age, as enforcement of minimum drinking age (21 in Indonesia) is inconsistent. Someone present in a bar or nightclub who appears to be an adult may not be one. Indonesian police are aware of this context and it does not benefit accused tourists.
"Gigolo" and Commercial Sex Culture
Bali has a documented commercial sex economy involving both female and male sex workers, some of whom are young. The presence of this economy does not legitimise participation. Paying for sexual services with anyone under 18 is a serious criminal offence. The commercial framing of a transaction does not reduce liability — it typically increases it under exploitation provisions.
Local "Guides" and Fixers
Some tourists are introduced to young locals through informal networks of guides, drivers, or accommodation staff. Being introduced by a trusted intermediary does not establish that the person is of legal age, and it does not transfer legal liability. The adult tourist remains responsible for verifying age.
Real Cases: Foreigners Arrested for Sexual Offences in Bali
Arrests of foreign nationals for sexual offences in Bali are documented and have resulted in substantial prison sentences. Without naming individuals (in keeping with responsible reporting), the following patterns are well-documented in Indonesian and international media:
- Multiple Australian nationals have been arrested, prosecuted, and sentenced to between 8 and 15 years imprisonment for child sexual abuse committed in Bali and other Indonesian locations. Several were identified through AFP-coordinated operations.
- European nationals — primarily French, German, and Dutch — have faced prosecution in Bali courts for sexual offences involving young Indonesians. Some received sentences exceeding 10 years under Child Protection Law provisions.
- Cases involving digital evidence (WhatsApp conversations, payments via transfer apps, photographs stored on seized devices) have been successfully prosecuted even when the defendant denied the alleged conduct.
- In several documented cases, local Balinese individuals — hotel staff, drivers, informal guides — have cooperated with police investigations, sometimes in exchange for reduced liability for their own role in facilitating introductions.
The pattern across cases is consistent: Indonesian courts treat child sex offences severely, foreign nationality provides no protection, and digital evidence is highly effective for prosecution. Defendants who believed they were protected by the claimed age or consent of their partner have uniformly found this argument rejected.
How Indonesian Courts View Age and Claimed Consent
Indonesian criminal procedure does not treat claimed consent from a person under the relevant age threshold as a substantive defence. This reflects a position consistent with most modern legal systems: a minor's capacity to consent to sexual relations with an adult is denied as a matter of law, not as a finding of fact.
In practice, this means:
- A statement by a young person that they consented to sexual relations with a foreign tourist is not admissible as a defence.
- Evidence that the young person appeared willing, initiated contact, or presented themselves as an adult does not constitute a defence.
- Evidence that the tourist did not know the person's true age may be considered as a mitigating factor in sentencing but does not eliminate criminal liability for Child Protection Act offences.
- For offences under the KUHP involving persons aged 18–19, the court may consider context more carefully, but the burden of establishing age awareness is on the defendant.
The practical takeaway is stark: if you engage sexually with someone in Bali and they are under 19 — regardless of what they told you, how they presented themselves, or where you met them — you face serious criminal liability under Indonesian law and potentially under your home country's law as well.
LGBTQ Context: The Gray Zone
Indonesia does not have a national law criminalising same-sex relations between consenting adults. However, this does not mean same-sex relations are legally protected or risk-free in Bali.
- Regional bylaws: Several Indonesian provinces and cities have local morality regulations (perda) that restrict same-sex conduct. Bali does not have such a bylaw, but neighbouring Java provinces do, and the political environment has become more conservative.
- The 2022 KUHP includes provisions on "fornication" (perzinahan) and "cohabitation" (kumpul kebo) that could theoretically be applied to same-sex couples, though enforcement against consenting same-sex adult tourists has not been the primary focus of Bali authorities.
- Public displays of affection between same-sex couples can attract unwanted attention from conservative locals and, in some documented cases, police intervention framed as "public order" enforcement.
- Age of consent applies equally: The age thresholds and Child Protection Act provisions apply identically to same-sex and opposite-sex relations. There is no different standard.
For a more detailed treatment of LGBTQ legal risks in Bali, see our dedicated guide: Is Bali Safe for LGBTQ Tourists in 2026?
What Tourists Must Know Before Going Out in Bali
The legal framework described in this article is not designed to prevent tourists from having meaningful, legal adult relationships while visiting Bali. It is designed to ensure that tourists understand the serious legal consequences of conduct that Indonesian law — and increasingly their home country's law — treats as criminal.
Know the Age Threshold
The age of consent in Indonesia under the 2022 KUHP is 19 years old. Anyone under 18 is a child under Indonesian law for criminal protection purposes. These are the numbers you must keep in mind. Not 16. Not 18 in a general sense. 19 for adult relations; 18 for the lower child protection threshold that carries the most severe penalties.
Verify Age — Actively
If you are in any situation where you are uncertain whether someone is 19 or older, do not proceed. Asking to see identification is legally prudent. An inability or unwillingness to produce ID is information. The fact that someone appears older, says they are older, or has been introduced by a trusted person does not shift your legal responsibility.
Understand That Economic Asymmetry Creates Legal Risk
Under the 2022 KUHP's expanded coercion definition, relationships where significant economic benefit flows from a foreign tourist to a young Indonesian — even if characterised as a personal relationship rather than a transaction — can be scrutinised as exploitation. This is particularly relevant for tourists who form relationships during extended stays in Bali.
Be Aware of Digital Evidence
Dating app conversations, social media messages, payment records, and photographs stored on your phone are all evidence that can be seized and used in a prosecution. Indonesian police routinely seize devices in sexual offence investigations. Encryption does not guarantee protection — Indonesian authorities can compel access or work with international counterparts.
Know Your Home Country's Laws Apply Too
If you are Australian, British, American, Canadian, or from most EU countries, your government's extraterritorial laws mean that conduct in Bali can be prosecuted at home. This is not a hypothetical — prosecutions have occurred. The fact that you are no longer in Indonesia does not close the legal exposure.
If You Are Approached by Police
If you are questioned by Indonesian police in connection with any sexual offence allegation, exercise your right to remain silent, contact your embassy immediately, and request access to a lawyer before making any statement. Do not assume that cooperating with police without a lawyer present will help your situation — in Indonesia as elsewhere, unrepresented statements to police in criminal investigations routinely cause harm to defendants. For a full guide on this process, see our article on what to do if you are arrested in Bali.
Bali is a place of genuine beauty, warmth, and cultural richness. The vast majority of tourists visit without any interaction with Indonesia's criminal justice system. The purpose of this article is to ensure that ignorance of Indonesian law — ignorance that has destroyed the lives of real people — does not add you to the list of foreigners who discovered the hard way that their assumptions about local law were wrong.
- AgeOfConsent.net — Indonesia Age of Consent
- Curvy Monthly — Bali's Age of Consent Laws Explained
- Bali.com — Legal Drinking Age in Bali, Indonesia
- Anywhere.com — Indonesia Crime and Safety
- Smartraveller (Australian Government) — Indonesia Travel Advice
- Law No. 1 of 2023 — Indonesia's New Criminal Code (KUHP Nasional), in force January 2026
- Law No. 35 of 2014 amending Law No. 23 of 2002 on Child Protection (UU Perlindungan Anak)
- Law No. 16 of 2019 amending Law No. 1 of 1974 on Marriage (minimum marriage age reform)
- Australian Criminal Code Act 1995, Division 272 (Child Sex Tourism)
- UK Sexual Offences Act 2003, Section 72 and Schedule 2
- US PROTECT Act of 2003 (extraterritorial child sex offence provisions)
Understanding Bali's legal environment is part of travelling responsibly. Your Happiness Tours connects visitors with authentic, culturally respectful Bali experiences guided by people who know the island's laws, customs, and communities. Travel with knowledge, travel with respect.
Plan Your Safe and Responsible Bali Trip