adoc

.adocAsciiDoc

AsciiDoc Project · 2002

Developer
AsciiDoc Project
Category
Documents
MIME Type
text/asciidoc
First Released
2002
Open Format
Yes
File Signature
N/A (plain text)
At a Glance
.adoc
AsciiDoc

AsciiDoc is a plain-text markup language used for writing documents that can be easily converted to HTML, PDF, and other formats.

Reviewed on June 5, 2026
Compression
Plain text
Transparency
N/A
Editability
High
Best for
Structured text documents

Key Features

  • Simple, human-readable plain-text markup
  • Extensive conversion capabilities to HTML, PDF, EPUB, man pages, etc.
  • Supports cross-references, tables, admonitions, footnotes, and more
  • Ideal for technical documentation, books, and web content

Best For

  • Technical writers needing a flexible format
  • Authors preferring plain text over WYSIWYG editors
  • Projects requiring multiple output formats from a single source
  • Collaborative writing due to text-based nature

Less Ideal For

  • Highly visual content with complex graphical layouts
  • Situations requiring real-time collaborative editing with immediate visual feedback
  • Users unfamiliar with basic text markup concepts
  • Creating simple, single-page documents meant only for direct viewing

Common Use Cases

  • Writing software documentation and man pages
  • Authoring books and long-form articles
  • Creating website content and blog posts
  • Generating reports and presentations

How to Open It

  1. Open with any plain text editor (e.g., VS Code, Sublime Text, Notepad++).
  2. Use dedicated AsciiDoc editors or plugins for enhanced syntax highlighting and preview.
  3. Process with tools like Asciidoctor for conversion to HTML, PDF, etc. (e.g., `asciidoctor document.adoc`).
  4. Some IDEs offer AsciiDoc extensions for integrated editing and preview.

What is a .adoc file?

AsciiDoc is a powerful plain-text document format that's designed for writing technical documentation, books, articles, and web content. It uses simple, intuitive markup that is easy to read and write, allowing you to focus on content rather than complex formatting. AsciiDoc files can be easily converted to various output formats like HTML, PDF, EPUB, and more, making them incredibly versatile for publishing.

Programs That Open .adoc Files

PlatformProgram
WindowsAsciidoctorFreeOfficial
VS Code (with AsciiDoc extensions)Free
macOSAsciidoctorFreeOfficial
VS Code (with AsciiDoc extensions)Free
LinuxAsciidoctorFreeOfficial
VS Code (with AsciiDoc extensions)Free
AndroidText Editor Apps (e.g., Termux with Asciidoctor)Free
iOSText Editor Apps (e.g., Textastic with Asciidoctor support)Free
Web BrowserAsciiDoc Live Preview OnlineFree

How to Convert .adoc Files

FormatMethod
.HTMLAsciidoctor, Pandoc
.PDFAsciidoctor (via Wkhtmltopdf/Prawn), Pandoc
.EPUBAsciidoctor, Pandoc
.DOCBOOKAsciidoctor, Pandoc

Common Problems with .adoc Files

⚠️ Complex tables or figures are hard to format directly.
Use AsciiDoc's built-in table syntax or refer to external files for complex graphics, and ensure your processor supports them.
⚠️ Syntax can be confusing for beginners.
Start with simple examples, use an editor with AsciiDoc plugins for syntax highlighting, and consult the official AsciiDoc documentation.
⚠️ Conversion to certain formats may require specific backends or configurations.
Ensure you have the necessary conversion tools (like Wkhtmltopdf for PDF) installed and configured correctly for Asciidoctor.

Frequently Asked Questions

Is AsciiDoc better than Markdown?

AsciiDoc is generally considered more powerful and feature-rich than Markdown, especially for complex documents like books and technical manuals, offering better support for cross-references, tables, and semantic structuring.

What is the main advantage of AsciiDoc?

Its primary advantage is the ability to write rich, structured documents using simple plain text, which can then be reliably converted to many different output formats.

Can AsciiDoc be used for web pages?

Yes, AsciiDoc is excellent for generating HTML web pages and is frequently used for website content, documentation sites, and blogs.

Technical Details

AsciiDoc files are plain text, often using UTF-8 encoding, and rely on simple syntax for elements like headings, lists, and cross-references. Its extensibility allows for custom attributes and blocks, and processors like Asciidoctor parse the text to generate structured output. The format is designed to be highly readable in its source form.

Did You Know?

AsciiDoc was created by Stuart Rackham and is inspired by Ascii Text.
It is the primary markup language used for many open-source projects' documentation, including the Linux kernel documentation.

Security Information

AsciiDoc files themselves are plain text and pose no inherent security risk. However, when converting or processing AsciiDoc files, especially from untrusted sources, ensure you are using reputable tools like Asciidoctor, as malicious content could theoretically be embedded in the source or generated output.

Related Extensions