Minecraft Book Editor
Write a multi-page book with colors and formatting, preview it like the in-game book GUI, then copy a /give command for Java Edition.
12/32
7/32
Page 1 of 1
~6/14 lines · 63 visible characters
Book preview
Page 1 of 1
Welcome to your book!
Use color codes like this to style text.
Use color codes like this to style text.
Generate the command
Copy a /give command for a written book.
/give @p written_book[written_book_content={title:"CraftMC Book",author:"CraftMC",generation:0,pages:[[{text:"Welcome to your book!\n\nUse color codes like ",color:"black"},{text:"this",color:"red",bold:true},{text:" to style text."}]]}] 1Use a command block — not chat
Chat only accepts about 256 characters. This command is 239 characters. Paste it into a command block (cheats / op required), then activate the block to get the book.
Java 1.21.5+: pages use SNBT text components (colors/styles render in-game).
FAQ
- How do I use a custom book in Minecraft?
- Copy the generated /give command and paste it into a command block (not chat — chat is limited to ~256 characters and book commands are usually longer). Activate the block with cheats or op permission to receive the written book.
- Why do I get an error when pasting the command in chat?
- Minecraft chat truncates long commands. That often breaks the command mid-string and shows errors like “invalid string contents.” Use a command block instead.
- What Minecraft versions are supported?
- Use 1.21.5+ for current Java (SNBT text components). Use 1.20.5–1.21.4 if you’re on that range (JSON page strings). Legacy NBT covers older Java roughly 1.13–1.20.4. If the book shows raw JSON instead of styled text, switch to the 1.21.5+ format.
- How many pages and characters fit on a page?
- Written books can have up to 100 pages. The in-game UI shows roughly 14 lines and about 19 characters per line — the editor warns when a page may overflow.
- How do color and formatting codes work?
- Use Minecraft’s § codes (or & as a shortcut while typing). Examples: §c red, §l bold, §o italic, §r reset. Click the color swatches to insert codes at the cursor.
- What does Generation mean?
- Generation sets how the book appears when copied: Original, Copy of original, Copy of a copy, or Tattered — the same options as a signed book in-game.
More text tools: MOTD Generator · Command Generator · All tools