Hub do Desenvolvedor icon

Hub do Desenvolvedor

Consultas de CNPJ, CPF, CEP, Correios, IBGE e Saldo via Hub do Desenvolvedor

Formatar → Formatar CPF

AI-generated

Summary

Format a given Brazilian CPF number into the standard format 000.000.000-00, accepting input with or without existing formatting.

Inputs

  • CPF (required) — CPF to be formatted, can be digits only or any format

Output shape

a JSON object containing the original input, the formatted CPF string, and the CPF digits only (unpadded numeric string with leading zeros to 11 digits)

The output JSON has keys 'original' (input string), 'formatado' (formatted CPF), and 'somente_numeros' (digits only, zero-padded to length 11). There is one output item per input item, preserving the pairing.

Examples

Example 1: Formatting a CPF

Input a CPF such as '12345678909' in the CPF field, select resource 'Formatar' and operation 'Formatar CPF'. The node will output the formatted string, e.g., '123.456.789-09'.

Links

Discussion