> For the complete documentation index, see [llms.txt](https://docs.sonsofphp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonsofphp.com/components/event-sourcing/event-messages/message-serializers.md).

# Message Serializers

Message Serializers will `serialize` an Event Message into Event Data and `deserialize` Event Data into an Event Message. These are generally used by the Message Repository classes and `serialize` is done before the event message is persisted to storage and `deserialize` is done on the data that is pulled out of the database.
