Skip to content
UniKit

Markdown to WeChat HTML

Convert Markdown into inline-styled HTML fragments for the WeChat editor: headings, lists, quotes and code blocks keep their styling. Three themes plus font size and alignment, all processed locally.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Headings, paragraphs, bold/italic/strikethrough, inline code, fenced code blocks, ordered and unordered lists, quotes, rules and images are supported; raw HTML is escaped.

Show local preview

WeChat HTML

Inline-styled HTML: copy it into the WeChat editor and the layout survives.

Enter Markdown to see the HTML

What this tool does

  • Turn a local Markdown draft into inline-styled HTML and paste it straight into the WeChat editor
  • Keep a consistent look across posts by switching theme colour and font size
  • Check heading levels, list counts and links before publishing

Example

Input

# Title

Output

<h1 style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;font-size:22px;font-weight:700;line-height:1.4;color:#333333;margin:24px 0 12px;">Title</h1>

Default clean theme at 16px: # Title becomes an inline-styled h1 (font size = body size + 6px) that keeps its look in the WeChat editor.

Frequently asked questions

Why inline styles instead of classes?

The WeChat editor strips <style> blocks and external stylesheets, so only styles on the element style attribute survive. Theme colour, font size, line height and spacing are therefore inlined on every block element.

Which Markdown features are supported?

Headings (# to ######), paragraphs with soft line breaks, **bold**, *italic*, ~~strikethrough~~, `inline code`, fenced code blocks, ordered and unordered lists, > quotes, --- rules, [links](url) and ![images](url). Tables, footnotes and task lists are not parsed and pass through as plain text.

Is embedded HTML executed?

No. Text is HTML-escaped first (& < > " '), so raw tags such as <script> are shown as text. Links only allow http/https/mailto/tel and relative paths; javascript: and similar schemes degrade to plain text. The preview renders only this tool's own escaped output.

Does it upload to WeChat?

No. There is no WeChat authorisation and no API call; the conversion happens entirely on your machine and pasting or publishing stays in your hands.

Keywords:markdown to wechatmarkdown to htmloffline

Related tools