Phone number generator

A mobile number is generated when the page opens. Choose the quantity, the type and the state, or click "Generate phone" to create another one.

Type
Options

How it works

  • The phone number is generated on the server and is not stored anywhere.
  • The area code (DDD) is picked from the 67 in use in Brazil, or from those of the chosen state.
  • Mobile numbers have nine digits and start with 9, as in (11) 98765-4321.
  • Landline numbers have eight digits and start with 2, 3, 4 or 5, as in (11) 3456-7890.
  • The number is picked at random and may belong to someone; use it for testing only, never to call or text.
  • The latest generated values are listed below the button until you leave the page.

How to use the API

You can integrate the phone number generator into your app through our REST API.

Endpoint

GET /api/generators/phone

Query parameters

type
Optional. "mobile" or "landline". Default: "mobile".
state
Optional. The state abbreviation, such as "SP". Without it, the state is picked at random.
formatted
Optional. "false" generates digits only. Default: "true".
quantity
Optional. From 1 to 50. When set, the response has the "phones" list instead of "phone".

curl example

curl "https://devtools.vmotta.dev/api/generators/phone?type=landline&state=SP&quantity=2"

Response

{
  "phones": [
    "(11) 3456-7890",
    "(19) 2718-0453"
  ]
}