# Messages larger than 4000 characters

**URL:** <https://forum.mattermost.com/t/messages-larger-than-4000-characters/12490>\
**Category:** Troubleshooting\
**Created:** [November 6, 2021, 6:53pm UTC](https://forum.mattermost.com/t/messages-larger-than-4000-characters/12490 "2021-11-06T18:53:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santec](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Santec](https://forum.mattermost.com/u/Santec)\
**Post date:** [November 6, 2021, 6:53pm UTC](https://forum.mattermost.com/t/messages-larger-than-4000-characters/12490/1 "2021-11-06T18:53:52Z")

</div>

Hello Mattermost team.

We want to increase the message size. Currently there are 4000 characters per message.

Mattermost Version: 5.39.1  
Database Schema Version: 5.39.1  
Database: postgres

The following was done:  
ALTER TABLE Posts ALTER COLUMN Message TYPE VARCHAR;

Unfortunately the error persists.  
“Your message is too long. Character count: 6412/4000.”  
“mattermost: {“level”:“info”,“ts”:1636223178.5157816,“caller”:“sqlstore/post\_store.go:2115”,“msg”:“Post.Message has size restrictions”,“max\_characters”:4000,“max\_bytes”:0}”

What can you do?

Many thanks for your help!  
Greetings  
Dave

---

<div class="post-metadata">

**Author:** ![Gavin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/gavin/32/5107_2.png) [@Gavin](https://forum.mattermost.com/u/Gavin)\
**Post date:** [November 7, 2021, 6:43am UTC](https://forum.mattermost.com/t/messages-larger-than-4000-characters/12490/2 "2021-11-07T06:43:26Z")

</div>

> [@Santec](#):
>
> max\_characters

Looking at the code, the max was hardcoded to be 4000.

---

<div class="post-metadata">

**Author:** ![Santec](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Santec](https://forum.mattermost.com/u/Santec)\
**Post date:** [November 9, 2021, 7:05am UTC](https://forum.mattermost.com/t/messages-larger-than-4000-characters/12490/3 "2021-11-09T07:05:07Z")

</div>

That’s why I followed this step:

> **[Eliminate 4000 character per message (message length)](https://mattermost.uservoice.com/forums/306457-general/suggestions/17368972-eliminate-4000-character-per-message-message-leng)**
>
> Currently I can't create messages with more than 4000 characters. This limit should be removed.

Is there a solution to display more than 4000 characters?
