Htmlclip copies HTML to the clipboard in HTML format for use in applications supporting rich text. Similar to Windows clip.exe, but for HTML. Text can be supplied from a file, or standard input.


This software is licensed under the terms of the MIT license.


Latest stable precompiled binary (with MiniCRT)
Latest stable Source code
Available here
Latest development precompiled binary (with MiniCRT)
Latest development source code
Older versions
See the archive page.

System Requirements

To run htmlclip binaries, you need Windows 95 or NT 4 or newer.

To compile from source, you need Visual C++, version 2 or newer. Free versions of Visual C++ are included in the Visual C++ 2015 Build Tools, Visual Studio Express 2012, Windows SDK 7.1 (2010), or Windows SDK 7.0 (2008).

Build instructions

  1. Open a command prompt to your version of Visual C++ and set up your environment.
  2. Unpack and enter the clmp source tree.
  3. Most of the time, just run "nmake".

Compilation options

Compilation options can be used by passing arguments to NMAKE.

DEBUG=Enable debug code. Valid values are 0 (disabled) or 1 (enabled.) Default is 0.
MINICRT=Compile against Minicrt rather than Msvcrt. Valid values are 0 (disabled) or 1 (enabled.) If 1, minicrt.h and minicrt.lib must be in %INCLUDE% and %LIB% respectively. An alternative way to use Minicrt is to extract it into a crt subdirectory within the clmp directory, and it will be used automatically. Default is 0.
MSVCRT_DLL=Compile against the shared, DLL C runtime library, or the static version. Valid values are 0 (static C runtime), or 1 (shared C runtime.) Default is 1.