<?xml version="1.0" encoding="utf-8"?>
<FilingSummary xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version>2.4.0.8</Version>
  <ProcessingTime />
  <ReportFormat>Html</ReportFormat>
  <ContextCount>130</ContextCount>
  <ElementCount>178</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>32</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>101 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DocumentandEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
    </Report>
    <Report>
      <IsDefault>true</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>103 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/StatementOfFinancialPositionClassified</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>104 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/StatementOfFinancialPositionClassifiedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>105 - Statement - Condensed Consolidated Statements of Operations and Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/StatementOfIncome</Role>
      <ShortName>Condensed Consolidated Statements of Operations and Comprehensive Loss</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>106 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/StatementOfCashFlowsIndirect</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>107 - Disclosure - Organization and Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsOrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlock</Role>
      <ShortName>Organization and Summary of Significant Accounting Policies</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>108 - Disclosure - Net Loss Per Share Attributable to Common Stockholders</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsEarningsPerShareTextBlock</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>109 - Disclosure - Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsBusinessCombinationDisclosureTextBlock</Role>
      <ShortName>Business Combination</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>110 - Disclosure - Cash Equivalents and Short-Term Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsCashCashEquivalentsAndMarketableSecuritiesTextBlock</Role>
      <ShortName>Cash Equivalents and Short-Term Investments</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>111 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsFairValueDisclosuresTextBlock</Role>
      <ShortName>Fair Value Measurements</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>112 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsDebtDisclosureTextBlock</Role>
      <ShortName>Debt</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>113 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsCommitmentsAndContingenciesDisclosureTextBlock</Role>
      <ShortName>Commitments and Contingencies</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>114 - Disclosure - Stock-Based Awards</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock</Role>
      <ShortName>Stock-Based Awards</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>115 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsIncomeTaxDisclosureTextBlock</Role>
      <ShortName>Income Taxes</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>116 - Disclosure - Organization and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsOrganizationConsolidationBasisOfPresentationBusinessDescriptionAndAccountingPoliciesTextBlockPolicies</Role>
      <ShortName>Organization and Summary of Significant Accounting Policies (Policies)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>117 - Disclosure - Net Loss Per Share Attributable to Common Stockholders (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsEarningsPerShareTextBlockTables</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>118 - Disclosure - Business Combination (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsBusinessCombinationDisclosureTextBlockTables</Role>
      <ShortName>Business Combination (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>119 - Disclosure - Cash Equivalents and Short-Term Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsCashCashEquivalentsAndMarketableSecuritiesTextBlockTables</Role>
      <ShortName>Cash Equivalents and Short-Term Investments (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>120 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsFairValueDisclosuresTextBlockTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>121 - Disclosure - Stock-Based Awards (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlockTables</Role>
      <ShortName>Stock-Based Awards (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>122 - Disclosure - Organization and Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureOrganizationAndSummaryOfSignificantAccountingPoliciesAdditionalInformation</Role>
      <ShortName>Organization and Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>123 - Disclosure - Net Loss Per Share Attributable to Common Stockholders - Shares Excluded from Computation of Diluted Net loss Per Share Attributable to Common Stockholders (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureNetLossPerShareAttributableToCommonStockholdersSharesExcludedFromComputationOfDilutedNetLossPerShareAttributableToCommonStockholders</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders - Shares Excluded from Computation of Diluted Net loss Per Share Attributable to Common Stockholders (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>124 - Disclosure - Business Combination - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureBusinessCombinationAdditionalInformation</Role>
      <ShortName>Business Combination - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>125 - Disclosure - Business Combination - Schedule of Assets Acquired and Obligations Assumed (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureBusinessCombinationScheduleOfAssetsAcquiredAndObligationsAssumed</Role>
      <ShortName>Business Combination - Schedule of Assets Acquired and Obligations Assumed (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>126 - Disclosure - Cash Equivalents and Short-Term Investments - Cash Equivalents and Available-for-Sale Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureCashEquivalentsAndShortTermInvestmentsCashEquivalentsAndAvailableforSaleInvestments</Role>
      <ShortName>Cash Equivalents and Short-Term Investments - Cash Equivalents and Available-for-Sale Investments (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>127 - Disclosure - Cash Equivalents and Short-Term Investments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureCashEquivalentsAndShortTermInvestmentsAdditionalInformation</Role>
      <ShortName>Cash Equivalents and Short-Term Investments - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>128 - Disclosure - Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasis</Role>
      <ShortName>Fair Value Measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>129 - Disclosure - Debt - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureDebtAdditionalInformation</Role>
      <ShortName>Debt - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>130 - Disclosure - Stock-Based Awards - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureStockBasedAwardsAdditionalInformation</Role>
      <ShortName>Stock-Based Awards - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>131 - Disclosure - Stock-Based Awards - Summary of Stock Options Outstanding (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureStockBasedAwardsSummaryOfStockOptionsOutstanding</Role>
      <ShortName>Stock-Based Awards - Summary of Stock Options Outstanding (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>132 - Disclosure - Stock-Based Awards - Stock-Based Compensation Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureStockBasedAwardsStockBasedCompensationExpense</Role>
      <ShortName>Stock-Based Awards - Stock-Based Compensation Expense (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>133 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.demandware.com/taxonomy/role/DisclosureIncomeTaxesAdditionalInformation</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Info">'Monetary' elements on report '122 - Disclosure - Organization and Summary of Significant Accounting Policies - Additional Information (Detail)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">'Monetary' elements on report '130 - Disclosure - Stock-Based Awards - Additional Information (Detail)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">Process Flow-Through: 103 - Statement - Condensed Consolidated Balance Sheets</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Mar. 31, 2013'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Dec. 31, 2012'</Log>
    <Log type="Info">Process Flow-Through: 104 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</Log>
    <Log type="Info">Process Flow-Through: 105 - Statement - Condensed Consolidated Statements of Operations and Comprehensive Loss</Log>
    <Log type="Info">Process Flow-Through: 106 - Statement - Condensed Consolidated Statements of Cash Flows</Log>
  </Logs>
  <InputFiles>
    <File>dwre-20140331.xml</File>
    <File>dwre-20140331.xsd</File>
    <File>dwre-20140331_cal.xml</File>
    <File>dwre-20140331_def.xml</File>
    <File>dwre-20140331_lab.xml</File>
    <File>dwre-20140331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles />
  <BaseTaxonomies />
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
