Posted on Leave a comment

Nicest Code: A Local HTML Code Cleaner for Copied Content

Copying formatted content should be simple.

You select the content you want, copy it, paste it into a website or editor, and continue working.

Unfortunately, the HTML behind that content can be far less simple.

Content copied from AI platforms, visual editors and other web interfaces may contain presentation metadata, generated class names, interface-specific attributes, unnecessary wrappers and excessive whitespace. Much of it is invisible in the visual editor, but it becomes obvious when the HTML source is inspected.

That is the problem Nicest Code was created to address.

Nicest Code is a local HTML code cleaner for Chrome. It removes approved presentation metadata and whitespace clutter while preserving the source you intended to keep.

It does not send copied source to Jays n Dees for cleaning, rewrite the entire document or guess which code might be unnecessary. Instead, it applies targeted rules and gives you the opportunity to inspect every change.

Why Copied HTML Can Become Messy

When content is copied from a web interface, the clipboard may contain more than the visible headings, paragraphs, lists and links.

Depending on the source, copied HTML can include:

  • generated data-* attributes
  • presentation-related class tokens
  • interface-specific wrappers
  • accessibility or directionality attributes
  • empty elements
  • excessive blank lines and spacing
  • metadata used only by the original platform
  • structures added during copying rather than intentionally written

Some of this markup may be useful. Some may be harmless. Some may create unwanted styling or leave the destination source filled with information that does not belong there.

The difficult part is not merely removing code.

The difficult part is removing only what has been approved for removal.

A Non-Destructive Cleaning Workflow

Nicest Code keeps the untouched Original source separate from the Modified result.

Source can be added by:

  • pasting from the clipboard
  • opening a supported file
  • dragging a supported file into the extension

The original remains available for comparison while the selected cleanup rules are applied to a separate working copy.

This makes the process reviewable. You can inspect the result, read the change report and decide whether to copy or save the modified source.

Nicest Code does not overwrite the original file. Its Save As workflow creates a separate cleaned copy.

General HTML Cleanup

The General HTML Cleanup preset provides a controlled starting point for source that contains common presentation clutter.

Depending on the selected options, it can assist with:

  • targeted attribute removal
  • complete class-token removal
  • approved empty-element cleanup
  • excess whitespace reduction
  • selected semantic controls
  • selected directionality controls

The available controls vary by licence edition.

The purpose is not to produce the shortest possible source. It is to remove selected clutter while preserving the underlying content and structure.

Evidence-Based Platform Presets

Different platforms can introduce different copying artefacts.

Nicest Code includes presets developed from controlled source-copy testing rather than assumptions about what a platform might produce.

The free Lite edition includes:

  • General HTML Cleanup
  • Copied ChatGPT HTML

Standard and Ultimate add presets for:

  • Gemini
  • Claude
  • Perplexity

These presets target patterns observed during controlled copying tests. They are not intended to remove every attribute or class appearing in a document.

Targeted Attribute and Class Removal

Nicest Code distinguishes between an attribute and an individual class token.

For example, an element may contain several classes:

<section class="sample-card featured generated-wrapper">

A targeted rule can remove the complete generated-wrapper token without deleting the entire class attribute or altering sample-card and featured.

This matters when part of a class list is intentional and part was introduced by the copying platform.

Standard and Ultimate also provide custom quick-removal fields for supported targeted cleanup tasks.

Protection for PHP, Scripts and Styles

HTML files do not always contain HTML alone.

A PHP template may include server-side blocks. A document may also contain JavaScript inside a script element or CSS inside a style element.

Nicest Code protects:

  • PHP blocks
  • script contents
  • style contents

It does not attempt to format PHP, JavaScript or CSS.

This is deliberate. Nicest Code is an HTML source cleaner, not a general-purpose code formatter or speculative code-rewriting system.

Detailed Change Reports

Cleaning source without knowing what changed can create a different kind of problem.

Nicest Code produces a numbered change report showing the targeted modifications it made. Reports include original source line references to help locate affected content.

This makes it easier to answer practical questions such as:

  • Which attribute was removed?
  • Which class token was deleted?
  • Where did an empty element occur?
  • What whitespace cleanup was applied?
  • Did a particular preset make any changes?

If no supported changes are required, the extension reports that outcome rather than pretending work was performed.

Undo, Reset, Copy and Save

The cleaning workflow includes controls for reviewing and managing the result:

  • Undo reverses the most recent supported change operation.
  • Reset restores the working result from the untouched Original.
  • Clear removes the current source from the workspace.
  • Copy places the Modified source on the clipboard.
  • Save As creates a separate cleaned file without replacing the original.

These controls are intended to keep the user in charge of the source throughout the process.

Lite, Standard and Ultimate

Nicest Code can be installed and used in Lite mode without a licence key.

FeatureLiteStandardUltimate
General HTML CleanupIncludedIncludedIncluded
Copied ChatGPT HTML presetIncludedIncludedIncluded
Original and Modified comparisonIncludedIncludedIncluded
Change reports and source line referencesIncludedIncludedIncluded
Undo, Reset, Copy and Save AsIncludedIncludedIncluded
Gemini, Claude and Perplexity presetsUnavailableIncludedIncluded
Semantic and directionality controlsUnavailableIncludedIncluded
Custom quick-removal fieldsUnavailableIncludedIncluded
Make the Nicest Code modeUnavailableIncludedIncluded
Local batch processingUnavailableUnavailableIncluded
Provider-evidence detectionUnavailableUnavailableIncluded
Custom rule packsUnavailableUnavailableIncluded

Standard supports one activated installation.

Ultimate supports up to ten activated installations and adds local batch processing for up to 100 supported files or a combined total of 50 MB. It can also produce combined reports, create cleaned ZIP downloads and manage custom rule packs.

Standard and Ultimate are optional lifetime licence upgrades.

Local Processing and Privacy

Source pasted into Nicest Code, opened from a file or added through drag-and-drop is processed locally on the device.

The source is not sent to Jays n Dees for cleaning.

Settings are also stored locally.

Paid-edition licence operations require limited communication with the Jays n Dees licensing service. These requests contain only the information needed to perform the licensing action, such as the licence credentials, a random installation identifier, the extension version and the requested action.

The complete handling details are available in the Jays n Dees Privacy Policy.

What Nicest Code Does Not Do

Nicest Code is purposefully limited.

It does not:

  • rewrite the entire document
  • reserialise all supplied HTML
  • format PHP
  • format JavaScript
  • format CSS
  • remove arbitrary code because it appears unnecessary
  • decide whether your content is factually correct
  • repair every possible HTML error
  • replace manual review

The extension removes supported artefacts according to selected rules. The user remains responsible for reviewing the result and confirming that it is suitable for the intended destination.

Nicest Code is one of several focused Jays n Dees browser extensions, each designed to solve a specific practical problem.

Supported Files

Nicest Code supports the following source file types:

  • HTML
  • HTM
  • PHP
  • TXT

Google Chrome with Manifest V3 extension support is required.

A network connection is only required for paid-edition licence activation and periodic licence verification. The source-cleaning process itself remains local.

Who Is Nicest Code For?

Nicest Code may be useful for:

  • WordPress users working in the Code Editor
  • website owners copying formatted AI responses
  • developers reviewing copied HTML fragments
  • content managers moving material between platforms
  • testers comparing source-copy behaviour
  • anyone who wants cleaner copied HTML without surrendering control of the source

It is particularly useful when the visible content looks correct but the underlying HTML contains unexplained metadata or presentation clutter.

Nicest Code Is Now Available

Nicest Code v0.8.0 is now available from the Chrome Web Store.

The free Lite edition includes the complete core single-source workflow, General HTML Cleanup and the Copied ChatGPT HTML preset.

Standard and Ultimate lifetime licence upgrades are available through the Jays n Dees e-Store for users who need additional presets, controls, batch processing or custom rule packs.

Install Nicest Code from the Chrome Web Store

View Nicest Code Standard and Ultimate licence upgrades

Copied HTML does not always need to be completely rewritten.

Sometimes it just needs a careful, transparent clean.


Leave a Reply

Your email address will not be published. Required fields are marked *