A notice can contain 32 characters in a tool and still exceed a 32-byte submission limit. The receiving system may limit encoded bytes rather than the text units shown by a character counter. Check the exact encoding and the part of the submission being measured before shortening the message.
This walkthrough uses a fictional raw-text endpoint with a 32-byte UTF-8 limit. The notice, tool results and local HTTP tests below are controlled examples, not a published limit for a named service.
Confirm what the receiving limit includes
Read the destination’s current instructions. Establish whether its limit applies to one text value, a complete request body or an uploaded file. Confirm the required encoding, whether the maximum is inclusive, and whether line breaks or a signature are added before submission.
For this example, the complete request body is the notice encoded as UTF-8. It contains no byte-order mark, trailing newline, JSON property names, form fields or other envelope. Bodies of up to 32 bytes are accepted; larger bodies receive HTTP 413.
MDN describes 413 Content Too Large as a response to content exceeding a server-defined limit. The status does not establish a universal 32-byte allowance. That number is the explicit rule of our test endpoint.
Read the UTF-8 byte statistic for the exact notice
Use this original notice without an extra line break at the end:
Please meet at 東京 gate at 14:00.
- Open the SHA-256 Generator and paste the notice into Text to hash.
- Keep Algorithm set to SHA-256 and Output format set to Hexadecimal. Leave Uppercase hex output unchecked.
- Select Generate hash and read the statistics below the result.
The current tool shows Characters: 32 and UTF-8 bytes: 36. The byte total exceeds our limit even though the character statistic equals 32. The two characters in 東京 each require more than one UTF-8 byte.
The generator uses TextEncoder for this byte statistic. MDN’s TextEncoder reference explains that it encodes a JavaScript string as UTF-8. Here, the statistic is useful for measuring the text; generating a digest does not validate a service’s size rule or submit the notice.
Compare the count with actual received bytes
We executed the current tool code through its Generate hash action, then sent four raw UTF-8 bodies to an isolated local HTTP server. The server counted the bytes it actually received before applying the declared limit. A separate Python check encoded each source string and compared the recorded request bytes.
| Input | Characters shown | UTF-8 bytes received | HTTP result |
|---|---|---|---|
| Original notice | 32 | 36 | 413; rejected |
| Edited notice below | 25 | 29 | 200; accepted |
32 copies of ASCII A |
32 | 32 | 200; accepted |
33 copies of ASCII A |
33 | 33 | 413; rejected |
The two ASCII rows are boundary controls, not proposed notices. They confirm that exactly 32 bytes are accepted and 33 are rejected in this fixture. The notice demonstrates why a character total alone is insufficient. These results do not predict every application’s response or validation order.
Shorten the wording and recheck the final payload
Remove the introductory politeness word while preserving the place, gate and meeting time:
Meet at 東京 gate at 14:00.
The edited notice has 25 characters in the tool and 29 UTF-8 bytes. Our endpoint accepted that exact body. Make edits to complete words or symbols and recount; do not cut an arbitrary byte position, which may fall inside a character’s encoded representation.
Count again after the destination adds any required material. If it serializes the notice into JSON or a form body, measure that final encoded payload under the actual rule. A byte count for the bare notice excludes those extra fields and encoding changes.
Finally, check the result in the receiving application and retain its exact accepted text. If the destination specifies characters instead, use the guide to character-count differences for that separate measurement. If two exact-text checks still disagree, the text-byte mismatch guide covers line endings and underlying Unicode differences.