MARKETPLACE
PLUGINS
BRAZILIAN CPF & CNPJ VALIDATOR
Brazilian CPF & CNPJ Validator logo

Brazilian CPF & CNPJ Validator

Published April 2026
   •    Updated this week

Plugin details

Validate Brazilian CPF and CNPJ numbers — including the new 2026 alphanumeric CNPJ format.
A lightweight server-side action that validates Brazilian CPF and CNPJ documents directly in your Bubble workflows — no external API calls required. Pass any CPF or CNPJ (with or without mask) and the action automatically detects the document type and returns whether it is valid and what type it is.

Key features:
• Works with both CPF (11 digits) and CNPJ (14 characters)
• Supports the new alphanumeric CNPJ format coming in July 2026
• Accepts masked inputs (e.g. 123.456.789-09 or 12.345.678/0001-95)
• Returns "is valid" (yes/no) and "document type" (CPF or CNPJ)
• No API key, no external dependency, no WU cost from API calls, only for the operation (average: 0,80 WU's.)
• Uses the official Módulo 11 algorithm with ASCII conversion for alphanumeric characters Important: local validation checks the mathematical integrity of the document number. For critical use cases (e.g. KYC, onboarding), we recommend combining this plugin with a live Receita Federal lookup to confirm the document actually exists.

$7

One time

stars   •   0 ratings
1 installs  
This plugin does not collect or track your personal data.

Platform

Web & Native mobile

Contributor details

Imad Majzoub logo
Imad Majzoub
Joined 2020   •   1 Plugin
View contributor profile

Instructions

## Setup No configuration needed. Install the plugin and the action "Validate CPF or CNPJ" will be available in your workflows immediately.

## How to use

1. In your workflow, add the action **Validate CPF or CNPJ**
2. In the "CPF or CNPJ" field, pass your input's value (masks are handled automatically)
3. In the next step, use **Result of step N's Is valid = yes** as your condition

## Returned values
- **Is valid** (yes/no) — whether the document passes the Módulo 11 check
- **Document type** (text) — returns "CPF" or "CNPJ" based on the input length

## Supported formats
- CPF: 000.000.000-00 or 00000000000
- CNPJ (numeric): 00.000.000/0000-00 or 00000000000000
- CNPJ (alphanumeric, 2026+): AB.CDE.FG1/0001-23 or ABCDEFG1000123

## Important note
This plugin validates the mathematical structure of the document using the official Módulo 11 algorithm. It does NOT check whether the document is registered with Receita Federal. For KYC or onboarding flows, combine this with a live API lookup (e.g. Brasil API) to confirm the document exists.

Types

This plugin can be found under the following types:

Categories

This plugin can be found under the following categories:

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble