# Standardize Phone Number

## <img src="/files/HbWo4t9caYCaAS1aB61U" alt="" data-size="line"> Standardize Phone Number

### Description <a href="#description" id="description"></a>

The Standardize Phone Number transform normalizes phone numbers in a standardized and consistent manner.

The transform uses [Google libphonenumber](https://github.com/google/libphonenumber) library.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | ?            |
| Flink      | ?            |
| Dataflow   | ?            |

### Options

| Option         | Description                                                                                                                                  |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name | Name of the transform.                                                                                                                       |
| Input field    | The field holding the phone numbers from the input data.                                                                                     |
| Output field   | Leave this field empty if you want to update the input field in stream. Otherwise a new field (string) will be added to the output data.     |
| Country field  | The field holding the country code from the input data. The country code is required to be in the ISO alpha-2.                               |
| DefaultCountry | The default country code to use if input data from country field is empty or invalid                                                         |
| Format         | The format to be used to standardize the phone numbers. The available options are: \* E164 (default) \* INTERNATIONAL \* NATIONAL \* RFC3966 |
| Number type    | The result field indicates the type of a processed phone number, such as fixed line, mobile…​                                                |
| Is valid       | The result field indicates whether a phone number is supposed to be valid                                                                    |

{% hint style="info" %}
Tip: If the original phone number already has an international area code, this transform will not normalize it to another country even if the international area code is different from the country input’s international area code.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/standardizephonenumber.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
