Check your content against UK speech law frameworks

Complete Social Media Offences Guide: All UK Laws That Apply to What You Post

Published 9 July 2026

Social media can land you in prison. This is not hyperbole. A single post can engage up to thirteen different UK statutes simultaneously, with maximum sentences ranging from a fine to 7 years' imprisonment. A "grossly offensive" tweet can carry 6 months. A threatening message can carry 5 years. Two abusive posts targeting the same person can become harassment. And a post that mentions an active court case can, in the right circumstances, be contempt of court.

This guide covers every UK law that applies to what you post on social media in 2026 — what each one requires, the maximum penalties, and what actually gets prosecuted versus what doesn't.

Disclaimer: This is general information, not legal advice. If you're under investigation for any of these offences, speak to a solicitor immediately.

Jurisdiction: This covers England and Wales. Scotland and Northern Ireland have separate, differently structured legislative frameworks.

All 13 UK Speech Law Frameworks at a Glance Criminal — direct individual liability Criminal — newer digital-era offences Civil or background framework Comms Act 2003, s.127 6 months Grossly offensive, indecent, obscene, or menacing messages — awareness standard Malicious Comms Act 1988 2 years Messages sent with purpose to cause distress or anxiety OSA 2023, Part 10 6mo–5yr False comms (s.179), threats (s.181), epilepsy trolling (s.183), self-harm (s.184) POA 1986, ss.4, 4A, 5 Fine–6mo Harassment, alarm, distress; fear of violence. Three-tier ladder. Can extend online. Prot. Harassment Act 1997 6mo–10yr Course of conduct (2+ occasions). Stalking provisions up to 10 years. POA 1986, Part III (Racial) 7 years Threatening, abusive OR insulting. DPP consent required. RRHA 2006 / CJIA 2008 7 years Religious/sexual orientation hatred — threatening ONLY. AG/DPP consent. Contempt of Court 1981 2 years Substantial risk of serious prejudice to active proceedings. AG consent. Also: Terrorism Act 2000/2006, Equality Act 2010, Defamation Act 2013 (civil), Obscene Pubs Act 1959, HRA 1998 Art.10, C&P Act 2026 — see resources page
All 13 frameworks at a glance: the offence, maximum penalty, and key threshold. Red = criminal individual liability. Dark = newer digital-era offences. Grey = civil or background.

The Three Workhorse Offences (Most Commonly Charged)

Communications Act 2003, s.127 — The Most Used

Section 127 is the statute police reach for first. It covers messages sent via a public electronic communications network that are "grossly offensive or of an indecent, obscene or menacing character." The Collins test (DPP v Collins [2006] UKHL 40) asks whether the message would cause outrage, shock, or disgust to a reasonable person in an open and just multi-racial society. No purpose to cause distress needs to be proved — awareness of the message's character is enough. Summary-only. Maximum: 6 months' imprisonment.

The Paul Chambers case (Chambers v DPP [2012] EWHC 2157 (Admin)) established that context matters. Chambers tweeted a frustrated joke about an airport closure, saying he would blow it up if it didn't sort itself out. He was convicted at magistrates' court but cleared on appeal — the High Court found the tweet was not menacing because no reasonable person reading it in context would think it was a genuine threat.

Malicious Communications Act 1988, s.1 — The Escalation

The MCA covers messages that are "indecent or grossly offensive" or convey a threat or false information — sent with the purpose of causing distress or anxiety. The purpose requirement is the key difference from s.127: the prosecution must prove you intended to cause distress, not just that you were aware the message might do so. In Connolly v DPP [2007] EWHC 237 (Admin), the High Court confirmed this element is genuinely narrow. Either-way offence. Maximum: 2 years on indictment.

Prosecutors reach for the MCA when the evidence shows targeted, persistent abuse — multiple messages, specific targeting, explicit intent to upset the recipient. For one-off offensive posts without clear evidence of purpose, s.127 is more commonly used.

Online Safety Act 2023, Part 10 — The New Offences

The OSA created four new criminal offences designed specifically for modern digital communication, in force since 31 January 2024:

s.179 — False Communications: Knowingly sending false information intending to cause non-trivial psychological or physical harm. Maximum: 6 months. Replaces the old s.127(2) "annoyance or inconvenience" standard with a meaningful harm threshold.

s.181 — Threatening Communications: Conveying a threat of death or serious harm, intending or being reckless as to whether the recipient fears the threat. Maximum: 5 years. This is the most serious individual-speech offence short of the hatred provisions.

s.183 — Epilepsy Trolling: Sending flashing images with intent to induce a seizure in someone with epilepsy, or recklessness. Maximum: 5 years.

s.184 — Encouraging Self-Harm: Encouraging or assisting serious self-harm. Intent or recklessness. Maximum: 5 years.

Penalty Ladder: From Fine to 7 Years POA s.5 FINE ONLY No intent needed s.127 Comms Act 6 MONTHS Awareness standard MCA 1988 2 YEARS Purpose standard OSA s.181 5 YEARS Recklessness standard HATRED OFFENCES 7 YEARS — DPP/AG consent required Higher penalties = higher mental-element bars = harder to prove. s.127 is used most because it asks the least. Sources: legislation.gov.uk; CPS charging data
The penalty ladder: from a fine (s.5 POA) to 7 years (hatred offences). Higher penalties mean harder prosecutions — s.127 dominates because it's the easiest to prove.

The Street Laws That Extend Online

Public Order Act 1986, ss.4, 4A, 5

Designed for face-to-face encounters but confirmed by courts to apply online. Three tiers: s.5 covers threatening or abusive behaviour likely to cause harassment, alarm, or distress (fine only, no intent needed). s.4A requires intent to cause H/A/D and actual causation (6 months). s.4 covers fear or provocation of immediate unlawful violence (6 months). A police officer can be the victim (DPP v Orum [1988]), but officers are expected to be "more robust" than civilians. The reasonable conduct defence applies to ss.4A and 5.

Protection from Harassment Act 1997

Requires a course of conduct — two or more occasions. Two abusive posts targeting the same person can cross from s.127 territory into harassment. Maximum: 6 months (up to 10 years for stalking involving fear of violence or serious alarm or distress). The "course of conduct" requirement makes this well-suited to sustained online abuse campaigns but inapplicable to one-off posts.

Contempt of Court Act 1981

Publishing material creating a substantial risk of serious prejudice to active legal proceedings. Naming jurors, revealing information restricted by court order, or posting material that could influence ongoing proceedings. Attorney General consent required. Maximum: 2 years. The well-documented cases of jurors posting about trials on social media — leading to contempt proceedings — demonstrate that this offence is actively enforced.


The Hate Speech Laws

Racial Hatred (POA 1986, Part III): Threatening, abusive, or insulting words intended or likely to stir up racial hatred. DPP consent required. 7 years. The most commonly used hatred provision.

Religious Hatred (RRHA 2006): Threatening words only — abusive and insulting excluded. Intent required, likelihood is not enough. The s.29J free-expression proviso explicitly protects criticism, ridicule, satire, and insult of religious beliefs. Attorney General consent required. 7 years.

Sexual Orientation Hatred (CJIA 2008): Same model as religious hatred — threatening only, intent required. DPP consent. 7 years.


Civil Frameworks and Background Statutes

Defamation Act 2013: Civil, not criminal. Publishing statements that seriously harm someone's reputation can result in a lawsuit for damages — never imprisonment. Truth (s.2), honest opinion (s.3), and publication on a matter of public interest (s.4) are statutory defences. The one-year limitation period runs from the date of publication — but every republication (retweet, share) resets the clock.

Equality Act 2010: Primarily civil. Harassment related to protected characteristics. Enforced through employment tribunals and county courts. Creates the protected-characteristic framework that hate speech laws reference.

Human Rights Act 1998, Article 10: Freedom of expression — including speech that "offends, shocks or disturbs." Every restriction on speech must be prescribed by law, in pursuit of a legitimate aim, and proportionate. Not a criminal offence, but the framework against which all speech restrictions are measured.

Terrorism Act 2000/2006: Encouragement of terrorism (s.1 TA 2006), dissemination of terrorist publications (s.2), and related offences. Narrow scope but severe penalties. Covers content that glorifies, encourages, or provides instruction for terrorism.

Obscene Publications Act 1959: Material tending to "deprave and corrupt." Rarely used for online speech — the OSA 2023 and Crime and Policing Act 2026 provisions have largely superseded it for digital content.

Crime and Policing Act 2026: The newest layer. s.99 (intimate image generators), ss.157-169 (public order), s.250 (corporate criminal liability for all offences by senior managers — in force from 29 June 2026).

What Gets Prosecuted vs What Doesn't LIKELY TO BE PROSECUTED Credible threats of violence or death Targeted racist abuse; persistent harassment Posts about active court proceedings UNLIKELY TO BE PROSECUTED Rude or insulting posts (not "grossly" offensive) Satire, political criticism, religious debate One-off offensive post with no targeting or threats CPS Charging Test: Realistic prospect of conviction + Public interest in prosecution Context always matters. The Chambers case showed that what looks menacing out of context may be innocent in it. Sources: CPS Social Media Guidelines; DPP v Collins [2006]; Chambers v DPP [2012]
What gets prosecuted vs what doesn't. The CPS charging test filters everything — context, intent, and the realistic prospect of conviction.

Practical Takeaways

  1. One post = multiple potential charges. The same tweet could engage s.127 (grossly offensive), the Malicious Communications Act (if purpose can be proved), and the hatred provisions (if it targets a protected group). The CPS chooses the most appropriate charge based on the evidence.
  2. The mental element determines the sentence. Awareness (s.127, 6 months) → Recklessness (s.181, 5 years) → Purpose (MCA 1988, 2 years) → Intent (hatred, 7 years). Higher bar = more time.
  3. Context matters across every statute. What you meant, where you posted it, who saw it, and whether it was directed at anyone — these factors determine whether conduct crosses the criminal threshold across every offence.
  4. Defamation is civil, not criminal. You can be sued for damages but cannot be imprisoned for defamation. Truth, honest opinion, and public interest are statutory defences.
  5. Get a solicitor if you're under investigation. The specific statute matters enormously for your sentencing exposure. A s.127 charge and a Malicious Communications Act charge can look similar on the facts but carry very different consequences.

Sources