Hub do Desenvolvedor icon

Hub do Desenvolvedor

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

Formatar → Formatar CEP

AI-generated

Summary

Format a Brazilian postal code (CEP) string into the standard 00000-000 format.

Inputs

  • CEP (required) — CEP to be formatted, accepts either only numbers or any format.

Output shape

A JSON object containing the original input, the formatted CEP string, and the digits-only CEP string.

Returns one output item per input containing the fields: original (input string), formatado (formatted CEP), and somente_numeros (digits only). The operation is performed locally without calling any external API.

Examples

Example 1: Input 01001000 to get formatted CEP

Set resource to 'Formatar', operation to 'Formatar CEP', and enter '01001000' in the CEP field.

Links

Discussion