PufferKit
HomeDeveloperHTML Encoder
Default
India11
East Asia3
Other Countries3
Buy me a coffee

HTML Encoder

Escape characters for use as plain text in HTML.

Direction

Your input is processed locally in this browser tab.

How to use HTML Encoder

  1. Paste markup, text snippets, or attributes that must render as literal text inside HTML.

  2. Choose whether to escape single/double quotes and whether to encode non-ASCII characters as hex entities (&#x…;).

  3. Copy the entity-escaped output ready for HTML templates or code blocks.

Frequently asked questions

Which ASCII characters are always escaped?

Ampersands (&), less-than (<), and greater-than (>) are always escaped; quotes (" and ') are escaped when Escape quotes is checked.

How are emojis handled when Encode non-ASCII is enabled?

Astral Unicode characters like emojis are emitted using their full Unicode code point, such as &#x1F98A;.

A LITTLE SUPPORT GOES A LONG WAY

Enjoying PufferKit?

If these tools made your day a little easier, you can buy me a coffee and support what I’m building.

Support
With or without a coffee, you’re always welcome here.

Processing locally

File and data operations run locally inside this browser tab. Static assets such as fonts and qpdf.wasm load from this site origin, while PufferKit never uploads your files or tracks usage. HTTP client tools send requests to endpoints you choose. Preferences and saved drafts stay in this browser’s storage until you clear them.

How it works →

Find a tool

Compress Image to KBImagesImage ConverterImagesImage ResizerImagesImage CropperImagesImage RotatorImagesImage DimensionsImagesImage ViewerImagesImage FlipperImagesImage MetadataImages · SecurityRemove MetadataImages · SecurityImage OptimizerImagesImage to Base64Images · DeveloperSVG to PNGImages · DesignJPG to PNGImagesPNG to JPGImagesJPG to WebPImagesPNG to WebPImagesWebP to JPGImagesWebP to PNGImagesAVIF to JPGImagesAVIF to PNGImagesBMP to PNGImagesImage FiltersImagesImage EffectsImagesPixelate ImageImagesBlur ImageImagesSharpen ImageImagesAdjust BrightnessImagesAdjust ContrastImagesAdjust SaturationImages