.blade.php
🌐 WebText-based

.blade.php File — Laravel Blade Template

text/x-php

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

BLADE.PHP

Drop a .blade.php file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/x-php

Quick Facts

Extension.blade.php
Full NameLaravel Blade Template
MIME Typetext/x-php
CategoryWeb
TypeText-based (human-readable)
Typical Size1 KB – 20 KB
First Appeared2011

What Is a .blade.php File?

Blade is the template engine included with Laravel, the most popular PHP web framework. Blade templates use a concise syntax with @ directives (@if, @foreach, @extends, @section, @yield, @component) and double curly braces ({{ }}) for escaped output. Blade's template inheritance system uses @extends to specify parent layouts and @section/@yield to define and fill content blocks, enabling clean separation of layout structure from page content. Blade components (class-based and anonymous) provide reusable UI elements with slots and attributes. Unlike some template engines that restrict PHP usage, Blade allows embedding raw PHP when needed via @php blocks. Blade templates are compiled to optimized PHP and cached, so Blade adds effectively zero overhead compared to raw PHP. The template engine supports conditional classes (@class), custom directives, inline component rendering, and stacks for pushing content to named locations in parent templates. Blade has become synonymous with Laravel development and is used by millions of applications worldwide. Laravel Livewire extends Blade with reactive capabilities for building dynamic interfaces without writing JavaScript.

How to Open .blade.php Files

VS Code
PhpStorm
Sublime Text
vim
any text editor

Related File Extensions

More Web File Extensions

Other web formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.