Build a fast, SEO-friendly static website

Deliver lightning-fast pages and boost your visibility in Google Search and AI Overviews. Fine-tune metadata, readable URLs, sitemaps and image compression directly in Publii. Publish pure static HTML that search engines can crawl instantly-no client-side JavaScript required.

Pre-rendered static HTML

Your content lives directly in the source code. Visitors and search bots get fully rendered pages immediately, eliminating common single-page app indexing issues.

Take full control of your SEO

Manage metadata, indexing rules, URLs and your sitemap from a single interface. Set global defaults across your site and easily override them on individual posts.

Cut page weight and bandwidth

Minify code, generate responsive layouts and serve next-gen WebP or AVIF images. Your hosting delivers lightweight static assets without server database overhead.

Control titles, metadata and indexing

Set default titles and descriptions for your entire site, then fine-tune them for individual posts and pages. Manage key SEO settings in the app without touching raw HTML.

Use dynamic patterns like %posttitle | %sitename to keep title tags consistent. Search engines will use your custom titles and meta descriptions or extract relevant page excerpts.

Apply noindex tags to selected pages or your entire site to keep them out of search results. This controls search indexing without restricting public access to the URL.

Explore SEO settings
Page title, meta description and indexing settings in Publii

Help search engines discover and understand your content

Provide clean URLs and descriptive metadata for every page. Keep an accurate XML sitemap and craft eye-catching link previews when your content is shared online.

An example article search result with a landscape thumbnail and an overlapping JSON-LD panel on the right

Enrich your articles with structured data

Give search engines explicit context about article titles, authors and publish dates. Publii’s built-in JSON-LD support adds schema markup automatically in compatible themes, and developers can easily extend it.

Structured data aligns directly with on-page content, helping qualify your pages for prominent Rich Snippets in Google search results.

Pretty URLs enabled with a readable article address

Publish clean, human-readable URLs

Create descriptive slugs and organize posts, tags and authors using clean URL prefixes. Stick with the standard .html extension or enable Pretty URLs for modern addresses like /blog/field-notes/.

When updating existing live URLs, configure 301 redirects on your server to preserve SEO authority and avoid broken links.

Configure URLs and prefixes
An XML sitemap branching to posts, pages, tags and authors

Generate XML sitemaps automatically

Enable automatic sitemap generation and Publii updates your XML file with every publish. Choose to include or exclude tag pages, author archives, pagination or external images.

Your sitemap helps search bots crawl new content quickly, working hand-in-hand with your internal linking structure.

Customize your sitemap
A Share control connected to a link preview with the article image, title and website address

Make shared links stand out on social media

Use Open Graph and Twitter Card tags to control titles, descriptions and preview thumbnails. Add a high-resolution featured image so your posts look sharp on Facebook, X, LinkedIn and messaging apps.

Configure social sharing metadata

Keep pages light, from theme to images

Your server delivers pre-built static files without executing PHP scripts or querying SQL databases. Leverage Publii's built-in speed features to slim down asset sizes and boost Core Web Vitals scores.

Publii theme with scores of 100 for Performance, 97 for Accessibility and 100 for SEO

Lightweight, responsive themes

Official Publii themes rely on semantic HTML, clean CSS and vanilla JavaScript. Layouts adapt smoothly to any screen without dragging in bulky front-end libraries or bloated JavaScript runtimes.

Asset weight, third-party scripts and hosting speed still influence Core Web Vitals, so be sure to audit your live site regularly.

Browse Publii themes
Semantic HTML with main and article elements, a header around the heading, body text and an article footer

Semantic HTML hierarchy

Standard semantic tags explicitly define headers, navigation, article bodies and footers. This clean structure helps search crawlers index your content accurately while making your site accessible to screen readers.

Pair semantic markup with descriptive headings, contextual link labels and meaningful image alt tags for maximum accessibility and SEO value.

Publii controls for HTML and CSS compression, lazy loading, responsive images and image quality at 70%

Code minification and lazy loading

Publii minifies HTML and CSS, strips unneeded comments and leverages native browser lazy loading for media assets. Responsive images ensure browsers only download the exact dimensions needed for the user's screen.

Automatic cache-busting version parameters on CSS and JS files guarantee visitors always fetch your latest updates without stale cache issues.

Explore website speed settings
An original image with WebP and AVIF as output format choices

Modern image formats: WebP and AVIF

Convert responsive images and thumbnails to ultra-efficient WebP or AVIF formats with a single toggle. Adjust compression sliders to slash file sizes while preserving crisp image detail-your master files remain untouched.

Switching formats? Regenerate images with one click to update existing assets across your entire site.

Solid SEO foundations for the AI search era

Google AI Overviews and AI Mode rely on the exact same core SEO principles as traditional Search. These optional Publii plugins help you format content specifically for AI engines and restrict unwanted crawlers.

LLMS.txt Generator

Generate a clean llms.txt index of your site's high-value content. Curate articles into topical categories and provide LLMs with direct pathways to pure Markdown versions.

Explore LLMS.txt Generator

Markdown for AI

Publish clean Markdown alongside your standard HTML pages. AI agents receive structured headings, tables, links and code blocks without requiring you to maintain duplicate content.

Explore Markdown for AI

AI Crawler Blocker

Define robots.txt directives for AI training bots. Target individual scrapers or predefined bot groups, updating your rules instantly upon publication to protect intellectual property.

Explore AI Crawler Blocker

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide