WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if anyone could tell me the max length of the meta_value field for posts and user meta.


share|improve this question
up vote 14 down vote accepted

Both usermeta.meta_value and postmeta.meta_value are stored as LONGTEXT. Here's how the MySQL docs describe the size of a LONGTEXT data type:

"A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 – 1) characters. The effective maximum length is less if the value contains multi-byte characters. The effective maximum length of LONGTEXT columns also depends on the configured maximum packet size in the client/server protocol and available memory."


share|improve this answer
It suffices to say that it would take a lot of text to max your limit. – Brian Fegter Feb 5 '12 at 6:10
Exactly what I needed to know. Thank You! – Dan Feb 5 '12 at 19:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.