Email Normalizer

Normalize email addresses to their canonical form. Strips plus tags, removes provider-specific dots, lowercases, trims whitespace, and resolves alias domains (e.g. googlemail.com → gmail.com). Returns the normalized address, its parts, and a list of every change applied.

Get API Key

Overview

Use Cases

  • De-duplicate user accounts that share the same canonical mailbox
  • Store a consistent canonical address alongside the original
  • Detect plus-tag abuse during registration
  • Normalize emails before look-up queries or comparisons

Features

Lowercases the full address
Trims leading and trailing whitespace
Removes dots from Gmail local parts (te.st → test)
Strips plus tags for supported providers (user+tag → user)
Resolves alias domains to canonical form (googlemail.com → gmail.com)
Returns a structured list of every change applied
Splits normalized address into local part and domain

API Endpoints

Normalize Email

Normalizes a single email address and returns the canonical form together with a breakdown of all transformations applied.

POST
https://requiems.xyz/v1/text/normalize

Parameters

Name Type Required Description
email string Required The email address to normalize. Must be a syntactically valid address.

Try it out

Live Demo
Request

The email address to normalize. Must be a syntactically valid address.

Response Fields

Field Type Description
original string The email address exactly as supplied in the request body
normalized string The canonical form of the address after all transformations
local string The local part (before @) of the normalized address
domain string The domain part (after @) of the normalized address
changes array<string> Ordered list of transformations applied. Possible values: lowercased, trimmed_whitespace, removed_dots, removed_plus_tag, canonicalised_domain. Empty array when no changes were needed.

Code Examples

curl -X POST https://requiems.xyz/v1/text/normalize \
  -H "requiems-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]"}'

Error Responses

validation_failed

The email field is missing or not a valid email address format.

bad_request

The request body is missing, not valid JSON, or contains unknown fields.

internal_error

Unexpected server error.

Normalize Email Batch

Normalizes up to 100 email addresses in one request. Results are in the same order as the input. Each item includes valid (boolean); when false, only original and message are set. Usage is billed per email processed (see gateway usage headers).

POST
https://requiems.xyz/v1/text/normalize/batch

Parameters

Name Type Required Description
emails array<string> Required Array of addresses to normalize (min 1, max 100; each entry non-empty)

Try it out

Live Demo
Request

Array of addresses to normalize (min 1, max 100; each entry non-empty)

Response Fields

Field Type Description
results array<object> One normalization result per input email, in order
total integer Number of emails in the batch (same as results length)

Code Examples

curl -X POST https://requiems.xyz/v1/text/normalize/batch \
  -H "requiems-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"emails":["[email protected]","[email protected]"]}'

Error Responses

validation_failed

Missing emails, empty array, too many items, or empty string in the array

bad_request

Invalid JSON or unknown fields in the body

Frequently Asked Questions