# Transformer

A transformer allows you to modify the message as it flows through the connector.

It is important to understand that a transformer can only act on a single message at a time. It has no knowledge of the previous or next messages flowing through the connector.

## Available transformers

### Mapping transformer

A mapping transformer allows you to change the stucture and contents of a message by applying a mapping to the message. It relies on the [Bloblang](/platform/1.14/connectors/bloblang.md) language to define the mapping.

### Service transformer

A service transformer allows a connector to reach out to a NATS service to transform messages. This is useful when you need to perform complex transformations that are not possible with the built-in transformers.
