Written Book Generator
Java EditionWrite a signed Minecraft book page by page with & colour and formatting codes, watch each page render exactly as the game wraps it (14 lines, pixel font, cream page) and copy a ready /give written_book command for Java 1.21.5+, 1.20.5–1.21.4 or 1.13–1.20.4. Select any text to make it clickable — jump to a page, open a website, run or suggest a command, copy to clipboard — and give it a hover tooltip; one click builds a table of contents. Warnings tell you when a page overflows or the command is too long for chat or a command block — and the AI can write a whole lore book for you.
Book
14/32
Tattered books can't be copied.
Player name or selector.
Pages (2/100)
Select some text above, then make it clickable or give it a hover tooltip.
1 – 2
Written books only: turns to that page.
Shown when the mouse is over the text. & codes work; \n for a new line.
Preview
Command
/give @p minecraft:written_book[written_book_content={title:"The Last Ember",author:"ShapeCraft",pages:[["",{text:"The Last Ember",color:"dark_blue",bold:true},{text:"\n\nLong before the first village, a dragon of ash and gold slept beneath the mountain.\n\n"},{text:"Turn the page…",color:"dark_gray"}],["",{text:"Those who sought its hoard never returned. Only their lanterns remained, still burning in the dark.\n\n"},{text:"Be warned, traveller.",color:"dark_red"}]]}]How it works
Each page is plain text with & codes: &0–&9 and &a–&f for the 16 colours, &#RRGGBB for any hex colour, &l bold, &o italic, &n underline, &m strikethrough, &k obfuscated and &r to reset. Use the toolbar to insert codes at the cursor. Page text is black by default, like in game.
The preview lays each page out the way Minecraft does: words wrap at 114 pixels and a page shows 14 lines. Anything past line 14 is cut off in game, so the tool flags the page. Pages above 1,024 characters can't be edited in a book and quill and are flagged too.
The command is built for the version you pick. Since 1.21.5 pages are SNBT text components; 1.20.5–1.21.4 stores them as JSON strings inside the written_book_content component; 1.13–1.20.4 uses the old item NBT. Empty pages at the end are dropped.
Select text in a page and use the link box under it to add a click action (go to page, open URL, run command, suggest command, copy to clipboard) and/or a hover tooltip. The link is stored in the page as a small tag such as <click:change_page:3>…</click>, so you can also type or paste them. The preview tints links, shows the tooltip on hover and turns the page when you click a page link. 1.21.5+ writes click_event/hover_event with the new url, command, page (a number) and value keys; older versions get clickEvent/hoverEvent with action and value (the page as a string) and the tooltip in contents (1.20.5+) or value (older).
Contents builds a table of contents at the front of the book: one dotted line per page, titled with the page's first line and linked to it with change_page. Run it again after editing and it replaces the old contents instead of adding another.
Long books are compressed into the share link, so a 50-page book still fits in one URL you can send, save to your library or reopen later.
Under the hood
- 1.21.5+
- give @p written_book[written_book_content={title:"T",author:"A",pages:["Page 1",{text:"Red",color:"red"}]}]
- 1.20.5–1.21.4
- give @p written_book[written_book_content={title:"T",author:"A",pages:['{"text":"Page 1"}']}]
- 1.13–1.20.4
- give @p written_book{title:"T",author:"A",pages:['{"text":"Page 1"}']}
- Limits
- title ≤ 32 chars · ≤ 100 pages · 14 lines × 114 px per page · 1,024 chars per page (book and quill) · command ≤ 256 chars in chat, ≤ 32,500 in a command block
- Click (1.21.5+)
- {text:"Next",click_event:{action:"change_page",page:2},hover_event:{action:"show_text",value:"Page 2"}}
- Click (older)
- {"text":"Next","clickEvent":{"action":"change_page","value":"2"},"hoverEvent":{"action":"show_text","contents":"Page 2"}}
- Generation
- 0 Original · 1 Copy of original · 2 Copy of a copy · 3 Tattered (can't be copied)
FAQ
How do I give myself a written book with a command?
Write your pages here, pick your Java version and copy the command. Paste it into a command block (chat only accepts 256 characters, which most books exceed). In 1.20.5+ it looks like /give @p written_book[written_book_content={title:"…",author:"…",pages:[…]}].
Why does my book command not work after updating to 1.21.5?
Minecraft 1.21.5 changed book pages from JSON strings ('{"text":"…"}') to SNBT text components ({text:"…"}). Commands written for 1.20.5–1.21.4 fail in 1.21.5+ and the other way round. Choose the matching version above and the tool writes the right format.
How many lines and characters fit on a book page?
A page shows 14 lines, each 114 pixels wide — roughly 19 average characters per line, about 200–250 characters per page. Bold text is wider. In a book and quill you can type up to 1,024 characters per page, but anything past line 14 is hidden, so the preview flags overflowing pages.
Can I use colours and bold text in a book?
Yes. Type & codes like &4 (dark red), &l (bold) or &#FF8800 (hex, 1.16+) and the command turns them into text components. Avoid light colours like yellow or white: book pages are cream and they become hard to read.
How do I add clickable links or a table of contents to a book?
Select the words in a page, choose what a click does — go to page, open a URL, run a command, suggest a command or copy text — add an optional hover tooltip and press Add. For a table of contents press Contents: it adds a page at the front with a linked line for every page. The command uses the right keys for your version (click_event in 1.21.5+, clickEvent before).
Why did my book's change_page links break in 1.21.5?
1.21.5 renamed clickEvent to click_event and gave each action its own key: change_page now takes page as a number (page:3) instead of value:"3", open_url takes url, run_command and suggest_command take command, and hover text moved to hover_event value. Old commands silently lose their links. Switch the version above and the links are rewritten.
Can I make written books with commands on Bedrock?
No. Bedrock commands have no NBT, so they can't fill in pages, a title or an author. Give yourself a book and quill (/give @p writable_book), write it in game — § colour codes work when typed — and sign it.
Related tools
Tellraw, Title & Actionbar Generator
Minecraft title & actionbar generator: /title and action bar text with colours, plus /tellraw chat with click and hover events, for Java and Bedrock.Text & StyleMinecraft Sign Text Generator
Design coloured, glowing, two-sided Minecraft signs with a live pixel preview and get the /give or /setblock command for 1.20 to 1.21.5+.Text & StyleMinecraft Color Codes & Formatting
Every Minecraft colour and formatting code (§ and &) with hex values, MiniMessage tags and JSON names, plus a live editor that converts between formats.Text & StyleMinecraft Gradient Text Generator
Minecraft gradient text generator: smooth RGB text in &#hex, MiniMessage, §x, JSON, MOTD and Bedrock formats, with a pixel-accurate in-game preview.Text & StyleMinecraft Font & Logo Text Generator
Turn any text into Minecraft-style pixel lettering with gradients, outlines, 3D extrude and shadows — download a transparent PNG.Text & Style