GOV.UK header
The GOV.UK header component tells users they’re using a service on GOV.UK and lets them use GOV.UK-wide tools. Also known as the GOV.UK masthead.
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="#" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK">
<title>GOV.UK</title>
<g>
<circle cx="20" cy="17.6" r="3.7" />
<circle cx="10.2" cy="23.5" r="3.7" />
<circle cx="3.7" cy="33.2" r="3.7" />
<circle cx="31.7" cy="30.6" r="3.7" />
<circle cx="43.3" cy="17.6" r="3.7" />
<circle cx="53.2" cy="23.5" r="3.7" />
<circle cx="59.7" cy="33.2" r="3.7" />
<circle cx="31.7" cy="30.6" r="3.7" />
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3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,2.8s1.6,1.2,2.8,1.6c1.2.4,2.2.6,3.6.6h0ZM261.4,11.9h8.4v18.2l14.8-18.2h10.4l-14.4,16.8,15.4,25.2h-9.8l-11-18.8-5.4,6v12.8h-8.4V11.9h0ZM206.2,44.2c-3,0-5.4,2.4-5.4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z" />
</svg>
</a>
</div>
</div>
</header>
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
homepageUrl: "#"
}) }}
If you use the page template, you’ll also get the GOV.UK header without having to add it, as it’s included by default. However, if you want to customise the default GOV.UK header, read the page template guidance about customising components.
Brand refresh of the GOV.UK header component
From 25 June 2025, the GOV.UK header component will change to support a wider refresh of the GOV.UK brand.
The updated GOV.UK header component:
- uses blue as the background colour, instead of black
- uses a refreshed GOV.UK logo and wordmark lockup
- adds 60px in height
To help service teams in government get ready, we’ve released GOV.UK Frontend v5.10.0.
Read the full release notes to see more details and how to update.
When to use this component
If your service is being hosted on one of these domains, use the GOV.UK header component:
- gov.uk/[myservice]
- [myservice].service.gov.uk
- [myblog].blog.gov.uk
You must use the GOV.UK header component at the top of every page. The Service Manual explains why it’s important for you to make your service look like GOV.UK.
When not to use this component
If your service is not hosted on one of the gov.uk domains outlined, you must not use the GOV.UK header component as it’s not considered part of GOV.UK.
You can still build from this component, but you’ll need to make some changes to make sure users do not confuse your website with GOV.UK.
How it works
Together, the GOV.UK header and Service navigation component both ensure users get a consistent experience on GOV.UK.
This also assures users that they’re in the right place to use your service and to understand that GOV.UK functions as one website.
For guidance on how to plan your header and navigation, see the Help users navigate a service pattern.
Default GOV.UK header
Most services on GOV.UK should use the default GOV.UK header.
It should only show the GOV.UK logo and any GOV.UK-wide links and tools to help your users. Do not add the menu of GOV.UK topic links to your service’s GOV.UK header.
<header class="govuk-header" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">
<div class="govuk-header__logo">
<a href="#" class="govuk-header__link govuk-header__link--homepage">
<svg
focusable="false"
role="img"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 296 60"
height="30"
width="148"
fill="currentcolor" class="govuk-header__logotype" aria-label="GOV.UK">
<title>GOV.UK</title>
<g>
<circle cx="20" cy="17.6" r="3.7" />
<circle cx="10.2" cy="23.5" r="3.7" />
<circle cx="3.7" cy="33.2" r="3.7" />
<circle cx="31.7" cy="30.6" r="3.7" />
<circle cx="43.3" cy="17.6" r="3.7" />
<circle cx="53.2" cy="23.5" r="3.7" />
<circle cx="59.7" cy="33.2" r="3.7" />
<circle cx="31.7" cy="30.6" r="3.7" />
<path d="M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1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4,5.4s2.4,5.4,5.4,5.4,5.4-2.4,5.4-5.4-2.4-5.4-5.4-5.4Z" />
</svg>
</a>
</div>
</div>
</header>
{% from "govuk/components/header/macro.njk" import govukHeader %}
{{ govukHeader({
homepageUrl: "#"
}) }}
Previous variants of the GOV.UK header
The GOV.UK header component was originally released with 2 variants:
- with service name
- with service name and navigation
These 2 variants will be removed from the GOV.UK header component in the next breaking release of GOV.UK Frontend.
In August 2024, we introduced a separate Service navigation component. This is to better help users understand that they’re using your service and let them navigate around your service.
We recommend using the Service navigation component to show your service name and navigation links instead of the GOV.UK header, and to start updating existing services.
See the Help users navigate a service pattern for more guidance.
GOV.UK header with service name
We’ve deprecated the GOV.UK header with service name and will remove this option in the next breaking release of GOV.UK Frontend.
Use the Service navigation component to show your service name instead. We recommend teams to start updating existing services.
GOV.UK header with navigation
We’ve deprecated the GOV.UK header with navigation and will remove this option in the next breaking release of GOV.UK Frontend.
Use the Service navigation component to add navigation links instead.
GOV.UK header with One Login
GOV.UK One Login maintains their own header on the Let users navigate to their GOV.UK One Login and sign out easily page.
Research on this component
See the research section in the Help users navigate a service pattern for a summary of our research on the GOV.UK header and navigation, and how you can share your feedback with us.
Help improve this component
To help make sure that this page is useful, relevant and up to date, you can:
- take part in the ‘GOV.UK header’ discussion on GitHub and share your research
- propose a change on GitHub – read more about how to propose changes in GitHub
Need help?
If you’ve got a question about the GOV.UK Design System, contact the team.