Use Any Emoji as a Favicon in Less Than One Minute

This will be a super quick tutorial, as it’s simply a code snippet. I always like to remove the Vercel logo when making a new project and I favour an emoji. There are so many emoji to choose from, so why not make it quick and easy? I typically have so many tabs open, that my localhost:3000 gets lost in the mix. Not anymore!
I stumbled upon this trick by accident here, and I can tell you it immediately works in a Next.js project!
Basically, all you have to do is add this snippet into your Head component in your index.js file:
<linkrel="icon"href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🍓</text></svg>"/>This overwrites the favicon.io which typically comes out of the box in any Next.js blog / app boilerplate install.
Big thanks to Joshua Soileau for figuring this out!






