Intimate image abuse hash matching toolkit

Published: 25 November 2026

This toolkit is designed to help providers implement the intimate image abuse hash matching measure as outlined in our Codes of Practice.

What is hash matching?

Hash matching is a process for detecting content that has previously been identified as potentially being illegal, or violating terms of service, to prevent the upload and sharing of that content.

It involves creating a hash (an identifying series of characters) of a unique piece of content, storing that hash in a database, and using an algorithm to detect attempts to upload the same or similar versions of that content. Once a match of some form is established, the content can either undergo review – which may include human review – or be removed automatically.

What is intimate image abuse?

‘Intimate image abuse’ relates to the non-consensual disclosure of, or threats to disclose, intimate images.

Our Illegal Content Judgements Guidance (PDF, 2.79 MB) helps you judge whether content is illegal. 

If you need support with understanding any of the terminology used throughout this toolkit, please refer to the glossary in the Detecting intimate image abuse statement (PDF, 33 KB) for more information.

Steps for implementing the hash matching measure

Show all steps

1

All service providers must first complete an Illegal Content Risk Assessment. To help you complete this, our digital toolkit will guide you through step by step and includes a template to help you record your risk assessment.

The outcome of your risk assessment will determine the risk of intimate image abuse on your service and whether you should implement hash matching. While it is for services to determine their risk levels, we expect pornography services to be high risk of intimate image abuse, regardless of size, as explained in our Register of Risks (PDF, 4.47 MB).

You can use the questions below to check if the intimate image abuse hash matching measure applies to your service.

Do you provide a user-to-user service?

If yes, the intimate image abuse hash matching measure will apply to you if your service is:

  • At a high risk of intimate image abuse and any of these three scenarios apply:
    • The main purpose of your service is hosting or disseminating pornographic content; or
    • Your service is a file-sharing or file-storage service; or
    • Your service has more than 700,000 monthly active UK users.
  • A large service, at either medium or high risk of intimate image abuse.

Terms like 'large service' and 'file-sharing and file-storage service' are defined in Section 5 of Ofcom’s Illegal content Codes of Practice for user-to-user services (PDF, 1.05 MB) and Illegal content Codes of Practice for search services (PDF, 726.9 KB). 

Do you provide a search service?

If yes, the intimate image abuse hash matching measure will apply to you if your service is a large general search service. ‘Large general search service’ is defined in Section 5 of Illegal content Codes of Practice for search services (PDF, 726.9 KB).

2

What is a hash database?

A hash database contains hashes, or ‘digital fingerprints’, of images and videos that have previously been submitted or identified as potential intimate image abuse.

When content is uploaded on a service, providers can compare the content against these hashes to help identify known intimate image abuse content and prevent upload or further sharing.

Where can I obtain an intimate image abuse hash database?

You can choose to:

  • use a third party database which is either, or equivalent to, StopNCII.org
  • develop an internal database if it is equivalent or better than the leading third-party database, currently StopNCII.org

Whether you use a third-party hash database or develop your own, the quality of your hash database will have a significant impact on the effectiveness of your implementation. Because of this, our Codes of Practice set out criteria that a hash database should fulfil.

We recommend that all service providers use a third-party database unless they have an equivalent or better internal database. We have set out below specific criteria which must be satisfied in order to determine that the hash database is appropriate.

Before selecting either a third-party database or your own internal hash database, consider whether you can answer 'yes' to all of the following. As explained in our criteria to determine an appropriate hash database, any third-party database should be equivalent to, or better than the leading existing third-party database, StopNCII.org.

The database will be considered appropriate if:

  • the database contains a significant number of hashes
  • the database is updated proactively and on a regular basis
  • appropriate security controls protect the database from unauthorised access or interference
  • it is broadly equivalent to StopNCII.org’s database (see below) in terms of quantity of original items of content hashes and quality of the hashes, if you are considering using an internal database

Case study: StopNCII.org 

StopNCII.org is a tool run by South West Grid for Learning (SWGfL) since 2021. It helps prevent the non-consensual sharing of intimate images online and is free to use for victims and survivors. StopNCII.org also provides a hash database to help industry platforms tackle intimate image abuse. 

How it works 

The tool enables adult victims of intimate image abuse to create hashes of intimate image(s) depicting them directly on their device. This preserves the privacy of victims as they don’t have to upload or share the image(s) itself and StopNCII.org does not view or retain a copy of the image(s).

Once the hash is created, it is stored in the StopNCII.org’s hash database, which is shared with a network of participating industry platforms.

Participating industry platforms compare content uploaded to their service against the hashes in the database to help detect and prevent the distribution of known intimate image abuse.  

Why we recommend it 

StopNCII.org’s hash database has been built by receiving submissions of hashed intimate images from multiple pipelines; survivors and victims themselves via its privacy-preserving hashing tool, industry platforms who have hashed NCII they have moderated, and NGOs and charities who work directly with those affected by intimate image abuse.

This database fulfils the criteria that Ofcom recommend (set out above). It is currently the only third-party database we are aware of which does so, but other databases could emerge. 

For many service providers, particularly those implementing hash matching for the first time, StopNCII.org is likely to provide a practical starting point for compliance. 

What impact has it made 

Many industry platforms already use StopNCII.org’s hash database as part of their detection and moderation systems to tackle intimate image abuse. These platforms include large tech companies such as Meta, TikTok and Microsoft, marketplaces like Depop and social networks like BlueSky and Fetlife.

How to access the database  

StopNCII.org offers a range of partnership pathways for different service providers. There is an annual fee for service providers to access the database that varies based on provider revenue. You can find out more about partnering with StopNCII.org by visiting their website.

3

What technology should I use?

The type of hash matching technology you should use depends on the type of content on your service.

Image-based content

For image-based content, including photographs and other still images, you should use perceptual hash matching.

Perceptual hashing can detect images that are visually similar to a hashed file even where the original image has been modified through cropping, resizing, filtering or other minor edits.

For image-based content, we do not consider cryptographic hash matching to meet the requirements of the measure, as outlined in our Codes of Practice.

Video-based content

For video-based content, you should use perceptual hash matching, where the database(s) you are using is available and supports this.

Otherwise, you should use cryptographic hash matching, where the database(s) you are using does not support perceptual video matching. Cryptographic hashing can detect videos that are an exact match to a hashed file.

This reflects the current availability of video-hashing databases for intimate image abuse. StopNCII.org is currently the only publicly available third-party hash database provider for intimate image abuse, and the StopNCII.org database does not support perceptual hash matching for video-based content.

When should the technology analyse content?

For content that is uploaded once the technology is in place on the service, content should be analysed before or as soon as practicable after it can be encountered by UK users.

For content already present on the service at the time the hash matching technology is implemented, the provider should analyse that content within a reasonable timeframe. It is up to Ofcom to decide if the reasonable timeframe condition has been met on a case by case basis.

Configuring perceptual hash matching technology

Perceptual hash matching requires providers to determine how similar content must be to a hash before it is treated as a match. This is known as a ‘matching threshold’.

Ofcom recommends configuring the technology to strike an appropriate balance between ‘precision’ and ‘recall’. This means balancing correctly identifying instances of intimate image abuse and ensuring abuse is not missed, while minimising false positives.

Balancing precision and recall

Balancing precision and recall is important when configuring perceptual hash matching. A system that aims to identify a greater portion of intimate image abuse may generate more false positives, while a system that prioritises reducing false positives may fail to identify genuine instances of abuse.

While providers need to balance precision and recall, the technology should be configured in a manner that effectively addresses the risk of intimate image abuse on the service. Simply deploying perceptual hash matching is unlikely to be sufficient where its configuration results in substantial volumes of known abusive content not being detected.

When configuring perceptual hash matching technology, consider:

  • The risk of harm from intimate image abuse on your service - you should refer to your completed Illegal Content Risk Assessment for this.
  • Information about the prevalence of intimate image abuse on your service.
  • The proportion of your matches that are identified as ‘false positives’.
  • The effectiveness of your systems used to identify and address ‘false positives’.
Configuration checklist

☐ We have created a written record of how our matching thresholds have been configured.
☐ We have considered the balance between precision and recall when setting thresholds, and struck an appropriate balance, taking account of:
☐ The risk of harm from intimate image abuse on our service.
☐ The prevalence of intimate image abuse on our service.
☐ The proportion of matches identified as ‘false positives’.
☐ The effectiveness of systems used to identify and address ‘false positives’.

As cryptographic hash matching determines whether the content is an exact match to the hash file, it does not require configuration in the same way as perceptual hash matching.

Reviewing your configuration

You should review the performance of the hash matching technology, and whether the balance between precision and recall continues to be appropriate, every six months.

Review checklist

We have put in processes to:
☐ Review our perceptual hash matching configuration at least every six months.
☐ Maintain written records of our configuration decisions.
☐ Review whether changes in the risk or prevalence of intimate image abuse on our service require adjustments to the configuration.
☐ Monitor detection outcomes and system performance over time.

Need a provider for hash matching technology?

For providers implementing intimate image abuse hash matching for the first time, there are organisations that can support implementation by providing access to integration pathways.

The case study below is for informational purposes only to help service providers understand available technology options. Service providers should ensure that they take appropriate steps to comply with their duties under the Online Safety Act.

Case study: Open-sourced algorithms 

StopNCII.org works by enabling survivors and victims of intimate image abuse to hash intimate image(s) depicting them directly on their device. ‘Hashing’ is the process of using an algorithm to assign a unique hash value to an image. Meta, a large tech company operating social media services, funded the development of the StopNCII.org tool with South West Grid for Learning (SWGfL).  The tool’s hashing algorithms are open-sourced and widely used by the tech industry to detect and remove violative content. StopNCII.org is wholly owned and operated by the SWGfL group, which also runs several initiatives to continually improve and advance the technology and the size of the hash data bank.

StopNCII.org uses three hash matching algorithms: Meta’s PDQ and Microsoft PhotoDNA for photos and MD5 for videos. PDQ and PhotoDNA are perceptual hashing algorithms which not only find exact duplicates but are resilient to common filters and thin cropping. Many implementations of PDQ are available online, for example python, rust, and java and PhotoDNA is available on Microsoft’s Azure Cloud Service. MD5 is a cryptographic algorithm which only finds exact duplicates.

Meta also maintains a library called python-threat exchange that can simplify StopNCII.org onboarding, including evaluating and downloading StopNCII.org data. StopNCII.org is not a hashing algorithm provider but it offers guidance on integrating the relevant algorithms into your platform. StopNCII.org can also provide assistance with the onboarding process, including advising on relevant timelines, and the technical considerations for each step. For example, StopNCII.org provides advice to services on how to start photo and video hash matching, how to access StopNCII’s API and how to download and evaluate the data. You can contact StopNCII.org if you are considering a partnership with them. 

4

What happens after content is matched?

The steps you take after a positive hash match will depend on whether a piece of content is categorised as a verified hash or an unverified hash. Understanding this distinction is important because it affects the level of confidence you can place in the match and whether further review is likely to be required.

StopNCII.org does not verify the hashes in the StopNCII.org database. It allows survivors and victims of intimate image abuse to generate a hash on their device from an image or video, and this hash is then uploaded on to the StopNCII.org database. This means that the database provider does not view or hold a copy of the image, to safeguard the privacy of survivors and victims.

Verified hashes

Services that implement the StopNCII.org database can designate a hash as ‘verified’ once it has been confirmed that the hash is indeed intimate image abuse content. As a result, a positive match against a verified hash may mean that there are reasonable grounds to assume the content is intimate image abuse and proceed with appropriate moderation action.

Whether additional review is appropriate will depend on your level of assurance in the detection outcomes produced by the hash matching technology. For example, where perceptual matching has been configured to prioritise recall, providers may wish to undertake additional review to reduce the risk of false positives.

Verified hashes checklist

☐ We understand whether our database contains verified hashes.
☐ We have assessed our level of confidence in detection outcomes.

Unverified hashes

An unverified hash is one that has not been assessed and confirmed as intimate image abuse content.

As a result, a match against an unverified hash should be treated as reason to suspect that the content may be intimate image abuse. However, because the hash is unverified, providers should review the content after the first positive match to determine whether the content is intimate image abuse.

Where you are using perceptual hash matching, this should take place after the first positive match at that configuration of the technology; this means that if there is a subsequent match but you have changed the configuration of the technology in the intervening period, you should review the content again.

In addition, where you are using cryptographic hash matching, this review should take place if this is the first time there has been a positive match with that hash.

Providers may use automated technologies (such as nudity detection technology), human reviewers, or a combination of both, to determine whether the content is intimate image abuse. Once the content has been reviewed, and if it is determined to be intimate image abuse, providers should proceed with appropriate moderation action.

After the first positive match (or the first positive match at that configuration of the technology, where perceptual hash matching is used), the process is different. Providers should follow the process that applies above in relation to verified hashes. This means they may proceed with appropriate moderation action, but this will depend on their level of assurance in detection outcomes produced by the hash matching technology. 

Reviewing unverified hashes checklist

☐ We understand whether our database contains unverified hashes.
☐ We have processes for reviewing first positive matches.
☐ For subsequent matches, we have assessed our level of confidence in detection outcomes.

Content moderation

Human review may be needed to determine whether content that matches against a hash is intimate image abuse. This supports appropriate moderation decisions about individual pieces of content. 

We have additional guidance on this available on our Online safety regulatory documents and guidance page. We also provide more information below on the steps you should take to review content.

How much human review is appropriate?

There is no fixed percentage of content that providers should review.

Instead, the appropriate level of review will depend on the following factors:

  • how confident you are in the detection outcomes of the hash-matching technology (discussed above);
  • the potential severity of harm to those depicted in, or encountering, intimate image abuse on your service. For example, where human review may lead to a delay in the removal of content, and the provider has a high level of confidence in detection outcomes, it may be appropriate to have a lower proportion of human review;
  • the impact of an incorrect decision that the content is intimate image abuse on the user who generated, uploaded or shared the content. For example, this may include:
    • account restrictions;
    • other impacts on the ability to use the service.
    • reduced visibility of content;
    • adverse financial impacts; or
    • the extent to which, and how quickly, incorrect moderation decisions can be reversed.
Human review checklist: moderation

☐ We have identified when human review is required as part of moderation.
☐ We understand the level of assurance provided by our detection systems.
☐ We have assessed the likelihood of false positives.
☐ We have considered the harm arising from the content.
☐ We have considered the impact of incorrect moderation decisions.

What appropriate moderation action should I take if I determine that the content is intimate image abuse?

If you determine that matched content is intimate image abuse (following review as appropriate), you should take moderation action.

User-to-user services should remove the content in line with existing moderation processes.

Search services should deprioritise the content from search results.

What if I determine that the content is not intimate image abuse?

If you determine that the detected content is not intimate image abuse, you should take reasonable steps to secure the removal of the hash from the database you are using.

There are several ways you may determine that a hash is not intimate image abuse, including:

  • Reviewing the image used to generate the hash (if available);
  • Reviewing content matched with the hash; and
  • Other reasonable belief that the hash is of an image that is not intimate image abuse.

If you determine that a hash is not intimate image abuse, the reasonable steps you should take will depend on whether you are using a third-party database or an internal database.

If you are using a third-party database, you should notify the hash database provider. If you are using an internal database, you should remove the hash from that database.

5

Why is human review important?

There are two reasons providers need to use human review as part of implementing hash matching to detect intimate image abuse. This section focuses on human review for the purposes of quality assurance. The other purpose relates to content moderation.

Quality assurance is an important safeguard when using automated technology like hash matching as part of content moderation processes. It helps ensure the technology is performing as expected and ensure that moderation outcomes are accurate, fair and appropriate. It also helps to identify errors and improve confidence in these processes over time.

We have additional guidance on this available on our Statement: Detecting intimate image abuse page and provide more information below on the steps you should take to review content.

Quality assurance

Providers should use human review on samples of content to ensure that their hash matching systems are performing as expected.

Reviewing detected content

Quality assurance reviews help to evaluate, assess and improve the effectiveness of the hash matching technology.

Providers should review samples of content detected by their hash matching systems and the moderation decisions that have been made on that content. This helps to identify:

  • detection errors;
  • recurring issues;
  • false positives;
  • false negatives; and
  • opportunities to improve system performance.
Reviewing undetected content

Providers should also review content that was not detected as a match by the hash-matching technology to identify false negatives and assess whether intimate image abuse is being missed. This could include reviewing content which was not detected by the technology but was identified as intimate image abuse using:

  • user reports;
  • complaints;
  • community moderation; and
  • sampling content.

How much human review is appropriate?

There is no fixed percentage of content that providers should review for quality assurance purposes.

The appropriate level of human review for quality assurance will depend on how confident providers are that the hash matching technology - and any associated systems and processes such as human moderation - are working correctly.

A higher proportion of human review is likely to be appropriate where your level of confidence in these detection outcomes is lower. Providers should also increase quality assurance, including human review, where observed outcomes are inconsistent with expectations.

Signs you may need more quality assurance

Consider increasing quality assurance activity where, for example:

  • Detection outcomes are not meeting expectations.
  • False positive rates are increasing.
  • User complaints indicate potential errors.

This list is not exhaustive.

Quality assurance checklist

☐ We use human review as part of our quality assurance process.
☐ When deciding the level of human review, we have regard to the confidence we have in detection outcomes achieved by the technology and associated systems/processes.

Doing so may involve:
☐ Assessing a sample of detected content and content moderation decisions.
☐ Increasing the level of human review where our confidence in detection outcomes is lower.
☐ Increasing the level of human review where observed outcomes are inconsistent with expectations.
☐ Reviewing undetected content identified through (for example) reports.

6

Hash matching systems become more effective when databases continue to improve over time.

When providers identify new intimate image abuse content – for example from a user report, rather than a hash match – they should take reasonable steps to secure that a hash of that content is added to the database(s) used. This will contribute to future detection.

The steps providers should take depend on whether it uses an internal database or a third-party database.

Internal databases

Where providers maintain their own internal database, they should add hashes of newly identified intimate image abuse content.

Third-party databases

Where a third-party database provider has arrangements in place for participating services to submit newly identified intimate image abuse content or hashes, providers should follow those arrangements and set up internal processes to allow for this.

This helps improve the effectiveness of the database and supports wider efforts to prevent re-sharing across participating services.

Handling new content checklist

☐ We have a process for taking steps to get a hash added to a database where we identify new intimate image abuse content.
☐ If using an internal database, we add hashes of such content to our database where appropriate.
☐ If using a third-party database, we understand whether our database provider accepts submissions of new hashes of content.