Key Takeaways: Justifying Text in WordPress
- The button vanished for a reason: WordPress removed the justify button to prevent inconsistent display across different browsers and devices.
- You have four solid options: Use keyboard shortcuts, install a dedicated plugin, add a CSS snippet, or use inline HTML for quick fixes.
- Mobile matters most: Justified text can create awkward “rivers” of white space on narrow screens. Always test on mobile before publishing.
- Plugins have evolved: In 2026, you can choose between classic toolbar restorers or modern Gutenberg-native solutions with typography controls.
If you’ve ever written a document in Microsoft Word or Google Docs, you know that justifying text is a one-click affair. It makes your content look clean, professional, and neatly aligned on both sides. But when you switch to WordPress, that familiar justify button mysteriously disappears. Since version 4.7, WordPress core has deliberately removed the text justification option from its default editor toolbar. The reason isn’t an oversight—it’s a deliberate decision based on responsiveness. Text that looks perfectly spaced on a desktop monitor can turn into a jagged, hard-to-read mess on a mobile screen. Fortunately, that doesn’t mean justification is impossible. In this guide, I’ll walk you through every reliable method to justify text in WordPress in 2026, from simple keyboard tricks to advanced CSS techniques.
What Is Justified Text?
Justified text is text that is aligned along both the left and right margins. To achieve this, your content management system (or word processor) adds small, adjustable spaces between words so that each line of text stretches from one edge of the column to the other. This creates a clean, block-like appearance that’s common in printed books and magazines. On the web, it can lend a formal or academic look to your content—but it requires careful handling to maintain readability.
Method 1: The Quick Keyboard Shortcut
Before diving into plugins and code, try the simplest method first. WordPress still respects keyboard commands for text formatting, even when the visual button is missing. This technique works in both the Classic Editor and the Block Editor (Gutenberg) when you’re editing a paragraph or heading block.
Steps to Justify with Keyboard Shortcuts
- 1 Log in to your WordPress dashboard and open the post or page you want to edit.
- 2 Select the paragraph or block of text you wish to justify.
- 3 Press the keyboard shortcut:
- Windows: Ctrl + Alt + J
- Mac: Ctrl + Option + J
That’s it. The selected text should instantly justify. If you want to justify an entire post, press Ctrl + A (or Cmd + A) to select everything, then apply the shortcut. This method is fast, requires no plugins, and works about 90% of the time.
Pro Tip: When the Shortcut Fails
If the keyboard shortcut doesn’t work, it’s usually because of a conflict with your browser or another plugin. Don’t worry—move on to Method 2, which is just as easy and gives you a permanent visual button.
Method 2: Install a Plugin (Two Modern Approaches)
Plugins are the most reliable way to restore the justify button permanently. However, your choice depends on which editor you use. In 2026, we have two distinct paths: plugins for the Classic Editor and plugins built natively for Gutenberg.
Option A: For Classic Editor Users
If you still use the Classic Editor (or the “Classic” block inside Gutenberg), you need a plugin that adds the justify button back to the TinyMCE toolbar. These plugins are lightweight and have been tested through dozens of WordPress updates.
Re-add text underline and justify
This plugin does exactly what it says—it brings back both the Underline (U) and Justify buttons. After activation, go to Settings → Writing and choose your preferred editor style. It’s compatible with the Classic Editor plugin and Advanced Custom Fields. You can learn more about it here.
A simpler, more focused plugin that only adds the justify button. Works seamlessly with the Classic Editor. Perfect if you want minimal interference with your toolbar. Check out the plugin details on WordPress.
Option B: For Gutenberg (Block Editor) Users
If you’ve fully embraced Gutenberg, you need a plugin designed for the block editor. The old TinyMCE plugins won’t add a button to your paragraph block toolbar. Instead, look for a block-specific solution.
Justify for Paragraph Block
Why it’s different: This plugin adds a native justify icon directly to the Gutenberg paragraph block toolbar. It doesn’t mess with the Classic Editor—it’s built specifically for the modern block experience. Version 1.1.0+ even includes advanced typography settings like automatic hyphenation and word-spacing controls to improve the visual outcome of justified text.
Bonus: It’s incredibly lightweight and has perfect 5-star ratings from users who appreciate that “it just works” without extra bloat. You can find it in the WordPress repository.
⚠️ Important: Plugin Conflicts
Only activate one justification plugin at a time. Using multiple plugins that modify the editor toolbar can cause buttons to disappear or behave erratically. If a plugin doesn’t work, deactivate it before trying another.
Method 3: Manual CSS (Full Control)
For those who prefer a code-based approach—or need to justify text across an entire site—CSS is the most powerful method. It gives you granular control over how justification behaves on different screen sizes.
Option A: Justify All Paragraphs Globally
If you want every paragraph on your site to be justified, add this CSS to your theme’s customizer:
p {
text-align: justify;
text-justify: inter-word;
hyphens: auto;
}
Explanation: text-justify: inter-word; increases word spacing rather than letter spacing, which is better for readability. hyphens: auto; allows the browser to break long words with hyphens, reducing the “river” effect (uneven gaps) in justified text.
Option B: Justify Specific Blocks or Posts
To justify text only in specific areas, create a custom CSS class:
.justify-text {
text-align: justify;
text-justify: inter-word;
hyphens: auto;
}
Then, in the Gutenberg editor, select your paragraph block, go to the Advanced tab, and enter justify-text in the “Additional CSS Class(es)” field. This applies your custom justification only where you want it.
Option C: Make Justification Responsive (Mobile-Friendly)
Here’s the expert trick: only apply justification on screens wide enough to handle it. This prevents mobile users from seeing a mess of uneven spacing.
@media (min-width: 800px) {
.entry-content p {
text-align: justify;
hyphens: auto;
}
}
This CSS rule ensures justification only activates on screens wider than 800px, keeping your mobile layout clean and left-aligned.
Method 4: Inline HTML (Quick & Dirty)
For a one-off fix, you can apply justification directly in the HTML editor. This is useful if you don’t want to install a plugin or edit your theme files.
- Edit your post and switch from the Visual tab to the HTML tab (or use the Code Editor in Gutenberg).
- Find the paragraph you want to justify.
- Add the style attribute directly to the
<p>tag:
<p style="text-align: justify; hyphens: auto;"> Your text goes here. It will be justified when the page loads. </p>
This method overrides your theme’s default alignment and requires no external changes.
Does Justified Text Affect SEO or Readability?
This is the million-dollar question. Google doesn’t penalize justified text directly—there’s no SEO penalty for using text-align: justify. However, user experience is a ranking factor. If your justified text is hard to read, visitors will bounce, and Google will notice.
One publisher ran an A/B test comparing justified text versus left-aligned text. The justified version had a 38% bounce rate compared to 33% for left-aligned, and average time on page dropped from 142 seconds to 125 seconds. While this isn’t a universal rule, it highlights the importance of testing.
Bounce Rate (Justified)
Bounce Rate (Left-Aligned)
To justify text without hurting UX, always enable hyphenation (hyphens: auto) and consider limiting justification to larger screens using media queries.
Need a Reliable Host for Your WordPress Site? Check IPHost
Frequently Asked Questions
A: The WordPress core team removed it in version 4.7 due to inconsistent rendering across browsers and screen sizes. Justified text that looks good on a desktop can become unreadable on mobile, so they prioritized responsiveness.
A: You can use the keyboard shortcut (Ctrl+Alt+J on Windows) or add custom CSS via the “Additional CSS Class” field in the block’s Advanced settings. The CSS class would contain
text-align: justify;.A: Most justification plugins are extremely lightweight. “Justify for Paragraph Block” is specifically noted for being performance-friendly. However, avoid stacking multiple editor plugins as they can conflict and slow down the admin area.
A: Yes, but you must enable hyphenation (
hyphens: auto) and test thoroughly. Better yet, use a media query to only apply justification on screens wider than 800px, preserving left-aligned text for mobile users.A: It works with the “Classic” block inside Gutenberg, but not with native Gutenberg paragraph blocks. For full Gutenberg compatibility, use a dedicated plugin like “Justify for Paragraph Block”.
A: Use a combination:
text-align: justify; text-justify: inter-word; hyphens: auto;. This optimizes word spacing and allows hyphenation, minimizing awkward gaps.Final Thoughts: Choose What Works for Your Readers
Justifying text in WordPress isn’t as straightforward as it once was, but that’s not necessarily a bad thing. The extra steps force us to think about readability and user experience. Whether you opt for the quick keyboard shortcut, a dedicated plugin, or custom CSS, always preview your content on multiple devices. If the justified text looks clean and professional, go for it. If it creates awkward gaps, stick with left-aligned. Your readers—and your bounce rate—will thank you.






